[clang] ff91206 - [ASTMatchers][Dynamic] Add missing matchers from Registry
Nathan James via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 15 06:07:45 PDT 2021
Author: Nathan James
Date: 2021-03-15T13:07:39Z
New Revision: ff9120636e9c890b4db735d252d16b92091dde55
URL: https://github.com/llvm/llvm-project/commit/ff9120636e9c890b4db735d252d16b92091dde55
DIFF: https://github.com/llvm/llvm-project/commit/ff9120636e9c890b4db735d252d16b92091dde55.diff
LOG: [ASTMatchers][Dynamic] Add missing matchers from Registry
Add the `fixedPointLiteral`, `hasAnyBody` and `templateArgumentLoc` to the dynamic matcher registry.
Reviewed By: steveire
Differential Revision: https://reviews.llvm.org/D98556
Added:
Modified:
clang/lib/ASTMatchers/Dynamic/Registry.cpp
Removed:
################################################################################
diff --git a/clang/lib/ASTMatchers/Dynamic/Registry.cpp b/clang/lib/ASTMatchers/Dynamic/Registry.cpp
index 4300eb8d8b98..bfc46b7742d6 100644
--- a/clang/lib/ASTMatchers/Dynamic/Registry.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Registry.cpp
@@ -229,6 +229,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(expr);
REGISTER_MATCHER(exprWithCleanups);
REGISTER_MATCHER(fieldDecl);
+ REGISTER_MATCHER(fixedPointLiteral);
REGISTER_MATCHER(floatLiteral);
REGISTER_MATCHER(forDecomposition);
REGISTER_MATCHER(forEach);
@@ -254,6 +255,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(hasAnyArgument);
REGISTER_MATCHER(hasAnyBase);
REGISTER_MATCHER(hasAnyBinding);
+ REGISTER_MATCHER(hasAnyBody);
REGISTER_MATCHER(hasAnyClause);
REGISTER_MATCHER(hasAnyConstructorInitializer);
REGISTER_MATCHER(hasAnyDeclaration);
@@ -526,6 +528,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(tagType);
REGISTER_MATCHER(templateArgument);
REGISTER_MATCHER(templateArgumentCountIs);
+ REGISTER_MATCHER(templateArgumentLoc);
REGISTER_MATCHER(templateName);
REGISTER_MATCHER(templateSpecializationType);
REGISTER_MATCHER(templateTemplateParmDecl);
More information about the cfe-commits
mailing list