Skip to content

Commit 65c22ac

Browse files
committed
Silence -Woverloaded-virtual warnings from generated code; NFC
1 parent 857b8a7 commit 65c22ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -3672,6 +3672,11 @@ static void GenerateMutualExclusionsChecks(const Record &Attr,
36723672
}
36733673
}
36743674

3675+
// If there are any decl or stmt attributes, silence -Woverloaded-virtual
3676+
// warnings for them both.
3677+
if (!DeclAttrs.empty() || !StmtAttrs.empty())
3678+
OS << " using ParsedAttrInfo::diagMutualExclusion;\n\n";
3679+
36753680
// If we discovered any decl or stmt attributes to test for, generate the
36763681
// predicates for them now.
36773682
if (!DeclAttrs.empty()) {

0 commit comments

Comments
 (0)