aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard <legalize@xmission.com>2022-04-22 19:35:48 -0600
committerRichard <legalize@xmission.com>2022-04-26 21:09:13 -0600
commit693246e03f28eaa72e0959fe6a969cea655b1fdc (patch)
tree03e6c33465508ba38315a11a1f952cd322ffb2e9 /flang/lib/Frontend/CompilerInvocation.cpp
parent9e0b5533594e168285d4d5f9b682bdbbdc149d7a (diff)
downloadllvm-693246e03f28eaa72e0959fe6a969cea655b1fdc.zip
llvm-693246e03f28eaa72e0959fe6a969cea655b1fdc.tar.gz
llvm-693246e03f28eaa72e0959fe6a969cea655b1fdc.tar.bz2
[clang-tidy] Modernize-macro-to-enum should skip macros used in other macros
If a macro is used in the expansion of another macro, that can cause a compile error if the macro is replaced with an enum. Token-pasting is an example where converting a macro defined as an integral constant can cause code to no longer compile. This change causes such macros to be skipped from the conversion process in order to prevent fixits from creating code that no longer compiles. A subsequent enhancement will examine macro usage in more detail to allow more cases to be handled without breaking code. Differential Revision: https://reviews.llvm.org/D124316 Fixes #54948
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions