forked from OSchip/llvm-project
d83ecd77cc
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 |
||
---|---|---|
.. | ||
Unit | ||
clang-apply-replacements | ||
clang-change-namespace | ||
clang-doc | ||
clang-include-fixer | ||
clang-move | ||
clang-query | ||
clang-reorder-fields | ||
clang-tidy | ||
modularize | ||
pp-trace | ||
.clang-format | ||
CMakeLists.txt | ||
lit.cfg.py | ||
lit.site.cfg.py.in |