Skip to content

Commit 2458aa0

Browse files
committed
Add missing override to clang tblgen AttrEmitter
1 parent bac74a5 commit 2458aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3677,7 +3677,7 @@ static void GenerateMutualExclusionsChecks(const Record &Attr,
36773677
if (!DeclAttrs.empty()) {
36783678
// Generate the ParsedAttrInfo subclass logic for declarations.
36793679
OS << " bool diagMutualExclusion(Sema &S, const ParsedAttr &AL, "
3680-
<< "const Decl *D) const {\n";
3680+
<< "const Decl *D) const override {\n";
36813681
for (const std::string &A : DeclAttrs) {
36823682
OS << " if (const auto *A = D->getAttr<" << A << ">()) {\n";
36833683
OS << " S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible)"
@@ -3714,7 +3714,7 @@ static void GenerateMutualExclusionsChecks(const Record &Attr,
37143714
if (!StmtAttrs.empty()) {
37153715
// Generate the ParsedAttrInfo subclass logic for statements.
37163716
OS << " bool diagMutualExclusion(Sema &S, const ParsedAttr &AL, "
3717-
<< "const Stmt *St) const {\n";
3717+
<< "const Stmt *St) const override {\n";
37183718
OS << " if (const auto *AS = dyn_cast<AttributedStmt>(St)) {\n";
37193719
OS << " const ArrayRef<const Attr *> &Attrs = AS->getAttrs();\n";
37203720
for (const std::string &A : StmtAttrs) {

0 commit comments

Comments
 (0)