[PATCH] D32112: [clang] Register isConstexpr matcher

Alexander Shaposhnikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 15 16:28:12 PDT 2017


alexshap created this revision.
alexshap created this object with visibility "All Users".

I was working on some analyzer / clang-tidy code and noticed that
isConstexpr was not available in clang-query.
This diff registers this matcher.

F3226452: Screen Shot 2017-04-15 at 4.21.23 PM.png <https://reviews.llvm.org/F3226452>

F3226453: Screen Shot 2017-04-15 at 4.21.16 PM.png <https://reviews.llvm.org/F3226453>


Repository:
  rL LLVM

https://reviews.llvm.org/D32112

Files:
  Registry.cpp


Index: Registry.cpp
===================================================================
--- Registry.cpp
+++ Registry.cpp
@@ -296,6 +296,7 @@
   REGISTER_MATCHER(isCatchAll);
   REGISTER_MATCHER(isClass);
   REGISTER_MATCHER(isConst);
+  REGISTER_MATCHER(isConstexpr);
   REGISTER_MATCHER(isConstQualified);
   REGISTER_MATCHER(isCopyAssignmentOperator);
   REGISTER_MATCHER(isCopyConstructor);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32112.95385.patch
Type: text/x-patch
Size: 395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170415/af26cd06/attachment-0001.bin>


More information about the cfe-commits mailing list