[PATCH] D19841: [clang-tidy] Lift common matchers to utils namespace

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 18:49:08 PDT 2016


alexfh requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: clang-tidy/utils/Matchers.h:20
@@ -19,1 +19,3 @@
 
+AST_MATCHER_P(StringLiteral, lengthIs, unsigned, N) {
+  return Node.getLength() == N;
----------------
All these should go to ASTMatchers.h (with tests and documentation).


http://reviews.llvm.org/D19841





More information about the cfe-commits mailing list