We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5d838 commit 20dcdaeCopy full SHA for 20dcdae
clang/lib/Sema/SemaDecl.cpp
@@ -6138,8 +6138,9 @@ void Sema::warnOnReservedIdentifier(const NamedDecl *D) {
6138
}
6139
// Diagnose use of C++ keywords in C as being incompatible with C++.
6140
if (!getLangOpts().CPlusPlus &&
6141
- !Diags.isIgnored(diag::warn_identifier_is_cpp_keyword,
+/* !Diags.isIgnored(diag::warn_identifier_is_cpp_keyword,
6142
D->getLocation()) &&
6143
+*/
6144
isKeywordInCPlusPlus(*this, D->getIdentifier()))
6145
Diag(D->getLocation(), diag::warn_identifier_is_cpp_keyword) << D;
6146
0 commit comments