-Wreserved-macro-identifier does not catch command line macros #56159
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
good first issue
https://github.com/llvm/llvm-project/contribute
If you define or undefine a reserved macro name within the TU, we properly diagnose it. But if you define or undefine a macro using the command line, we do not issue any diagnostics. I think the command line should be treated the same as within a TU.
Live example: https://godbolt.org/z/3edqooWr9
The text was updated successfully, but these errors were encountered: