PR50644: Do not warn on a declaration of `operator"" _foo`.
authorRichard Smith <richard@metafoo.co.uk>
Wed, 6 Oct 2021 21:11:32 +0000 (14:11 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 6 Oct 2021 22:13:05 +0000 (15:13 -0700)
commit7063b76b02484f93104f1c79496ad216b9bf5b87
treea55787ac69b2e5faedae78ce35a280655a36ea9e
parent7ebcb7ce78f6abb73c5a29e7c8b9dd360acb65bc
PR50644: Do not warn on a declaration of `operator"" _foo`.

Also do not warn on `#define _foo` or `#undef _foo`.

Only global scope names starting with _[a-z] are reserved, not the use
of such an identifier in any other context.
clang/include/clang/Basic/IdentifierTable.h
clang/lib/AST/Decl.cpp
clang/lib/Lex/PPDirectives.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaStmt.cpp
clang/test/Sema/reserved-identifier.c
clang/test/SemaCXX/reserved-identifier.cpp [moved from clang/test/Sema/reserved-identifier.cpp with 93% similarity]