[PATCH] D144654: [Lex] Warn when defining or undefining any builtin macro
John Brawn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 15 08:55:16 PDT 2023
john.brawn updated this revision to Diff 522215.
john.brawn edited the summary of this revision.
john.brawn added a comment.
I've gone with handling the _GNU_SOURCE problem in the clang-tidy tests by re-using the list of feature test macros in shouldWarnOnMacroDef, and not warning if there's a match.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144654/new/
https://reviews.llvm.org/D144654
Files:
clang/docs/ReleaseNotes.rst
clang/lib/Lex/PPDirectives.cpp
clang/test/Lexer/builtin_redef.c
clang/test/Preprocessor/macro-reserved.c
clang/test/Preprocessor/macro-reserved.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144654.522215.patch
Type: text/x-patch
Size: 9978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230515/ff047677/attachment.bin>
More information about the cfe-commits
mailing list