[all-commits] [llvm/llvm-project] 512273: [clang-tidy] Support expressions of literals in mo...
Richard Thomson via All-commits
all-commits at lists.llvm.org
Fri May 13 17:46:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5122738331362b574baf0a5a17311cddd52a253e
https://github.com/llvm/llvm-project/commit/5122738331362b574baf0a5a17311cddd52a253e
Author: Richard <legalize at xmission.com>
Date: 2022-05-13 (Fri, 13 May 2022)
Changed paths:
M clang-tools-extra/clang-tidy/modernize/CMakeLists.txt
A clang-tools-extra/clang-tidy/modernize/IntegralLiteralExpressionMatcher.cpp
A clang-tools-extra/clang-tidy/modernize/IntegralLiteralExpressionMatcher.h
M clang-tools-extra/clang-tidy/modernize/MacroToEnumCheck.cpp
M clang-tools-extra/docs/clang-tidy/checks/modernize-macro-to-enum.rst
M clang-tools-extra/test/clang-tidy/checkers/modernize-macro-to-enum.cpp
M clang-tools-extra/unittests/clang-tidy/CMakeLists.txt
A clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
Log Message:
-----------
[clang-tidy] Support expressions of literals in modernize-macro-to-enum
Add a recursive descent parser to match macro expansion tokens against
fully formed valid expressions of integral literals. Partial
expressions will not be matched -- they can't be valid initializing
expressions for an enum.
Differential Revision: https://reviews.llvm.org/D124500
Fixes #55055
More information about the All-commits
mailing list