r300427 - [clang] Register isConstexpr matcher
Alexander Shaposhnikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 12:05:17 PDT 2017
Author: alexshap
Date: Sun Apr 16 14:05:17 2017
New Revision: 300427
URL: http://llvm.org/viewvc/llvm-project?rev=300427&view=rev
Log:
[clang] Register isConstexpr matcher
This diff registers isConstexpr matcher.
Test plan:
make check-all
check that "match varDecl(isConstexpr())"
works in clang-query
Differential revision: https://reviews.llvm.org/D32112
Modified:
cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp
Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp?rev=300427&r1=300426&r2=300427&view=diff
==============================================================================
--- cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp (original)
+++ cfe/trunk/lib/ASTMatchers/Dynamic/Registry.cpp Sun Apr 16 14:05:17 2017
@@ -296,6 +296,7 @@ RegistryMaps::RegistryMaps() {
REGISTER_MATCHER(isCatchAll);
REGISTER_MATCHER(isClass);
REGISTER_MATCHER(isConst);
+ REGISTER_MATCHER(isConstexpr);
REGISTER_MATCHER(isConstQualified);
REGISTER_MATCHER(isCopyAssignmentOperator);
REGISTER_MATCHER(isCopyConstructor);
More information about the cfe-commits
mailing list