aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorRichard <legalize@xmission.com>2021-12-29 16:49:36 -0700
committerRichard <legalize@xmission.com>2022-01-19 12:28:22 -0700
commitd83ecd77cc0f16cb5fbabe03d37829893ac8b56d (patch)
tree5e191877f4578c48866975b8b7f6799f27309ed9 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentc4017f9d0cf224e52df06f490902d05d1d43a4a9 (diff)
downloadllvm-d83ecd77cc0f16cb5fbabe03d37829893ac8b56d.zip
llvm-d83ecd77cc0f16cb5fbabe03d37829893ac8b56d.tar.gz
llvm-d83ecd77cc0f16cb5fbabe03d37829893ac8b56d.tar.bz2
[clang-tidy] Narrow cppguidelines-macro-usage to actual constants
Previously, any macro that didn't look like a varargs macro or a function style macro was reported with a warning that it should be replaced with a constexpr const declaration. This is only reasonable when the macro body contains constants and not expansions like ",", "[[noreturn]]", "__declspec(xxx)", etc. So instead of always issuing a warning about every macro that doesn't look like a varargs or function style macro, examine the tokens in the macro and only warn about the macro if it contains only comment and constant tokens. Differential Revision: https://reviews.llvm.org/D116386 Fixes #39945
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions