Navigation Menu

Skip to content

Commit

Permalink
Silence -Woverloaded-virtual warnings from generated code; NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBallman committed Apr 6, 2021
1 parent 857b8a7 commit 65c22ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clang/utils/TableGen/ClangAttrEmitter.cpp
Expand Up @@ -3672,6 +3672,11 @@ static void GenerateMutualExclusionsChecks(const Record &Attr,
}
}

// If there are any decl or stmt attributes, silence -Woverloaded-virtual
// warnings for them both.
if (!DeclAttrs.empty() || !StmtAttrs.empty())
OS << " using ParsedAttrInfo::diagMutualExclusion;\n\n";

// If we discovered any decl or stmt attributes to test for, generate the
// predicates for them now.
if (!DeclAttrs.empty()) {
Expand Down

0 comments on commit 65c22ac

Please sign in to comment.