Skip to content

Commit 20dcdae

Browse files
committed
Temporarily back this change out
I want to see if I can improve the speed before we conditionally enable the check.
1 parent 6c5d838 commit 20dcdae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6138,8 +6138,9 @@ void Sema::warnOnReservedIdentifier(const NamedDecl *D) {
61386138
}
61396139
// Diagnose use of C++ keywords in C as being incompatible with C++.
61406140
if (!getLangOpts().CPlusPlus &&
6141-
!Diags.isIgnored(diag::warn_identifier_is_cpp_keyword,
6141+
/* !Diags.isIgnored(diag::warn_identifier_is_cpp_keyword,
61426142
D->getLocation()) &&
6143+
*/
61436144
isKeywordInCPlusPlus(*this, D->getIdentifier()))
61446145
Diag(D->getLocation(), diag::warn_identifier_is_cpp_keyword) << D;
61456146
}

0 commit comments

Comments
 (0)