[PATCH] D98556: [ASTMatchers][Dynamic] Add missing matchers from Registry
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 12 13:59:22 PST 2021
njames93 created this revision.
njames93 added reviewers: aaron.ballman, alexfh, steveire.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Add the `fixedPointLiteral`, `hasAnyBody` and `templateArgumentLoc` to the dynamic matcher registry.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98556
Files:
clang/lib/ASTMatchers/Dynamic/Registry.cpp
Index: clang/lib/ASTMatchers/Dynamic/Registry.cpp
===================================================================
--- clang/lib/ASTMatchers/Dynamic/Registry.cpp
+++ clang/lib/ASTMatchers/Dynamic/Registry.cpp
@@ -229,6 +229,7 @@
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 @@
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 @@
REGISTER_MATCHER(tagType);
REGISTER_MATCHER(templateArgument);
REGISTER_MATCHER(templateArgumentCountIs);
+ REGISTER_MATCHER(templateArgumentLoc);
REGISTER_MATCHER(templateName);
REGISTER_MATCHER(templateSpecializationType);
REGISTER_MATCHER(templateTemplateParmDecl);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98556.330367.patch
Type: text/x-patch
Size: 1067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210312/a2d43aeb/attachment.bin>
More information about the cfe-commits
mailing list