aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2023-01-23 17:40:59 +0000
committerJohn Brawn <john.brawn@arm.com>2023-05-25 11:55:44 +0100
commit0123deb3a6f0a83095287f51b07c77b7b43ab847 (patch)
treea5b2c5d4805acc5d08d4e429e803860e9143fc31 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentb5983a38cbf4eb405fe9583ab89e15db1dcfa173 (diff)
downloadllvm-0123deb3a6f0a83095287f51b07c77b7b43ab847.zip
llvm-0123deb3a6f0a83095287f51b07c77b7b43ab847.tar.gz
llvm-0123deb3a6f0a83095287f51b07c77b7b43ab847.tar.bz2
[Lex] Warn when defining or undefining any builtin macro
Currently we warn when MI->isBuiltinMacro, but this is only true for builtin macros that require processing when expanding. Checking SourceMgr.isWrittenInBuiltinFile in addition to this will mean that we catch all builtin macros, though we shouldn't warn on feature test macros. As part of doing this I've also moved the handling of undefining from CheckMacroName to HandleUndefDirective, as it doesn't really make sense to handle undefining in CheckMacroName but defining in HandleDefineDirective. It would be nice to instead handle both in CheckMacroName, but that isn't possible as the handling of defines requires looking at what the name is being defined to. Differential Revision: https://reviews.llvm.org/D144654
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions