[PATCH] D39366: [ASTMatchers] Matchers for new[] operators

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 05:08:05 PDT 2017


aaron.ballman added inline comments.


================
Comment at: include/clang/ASTMatchers/ASTMatchers.h:5772
+///   matches the expression 'new MyClass[10]'.
+AST_MATCHER(CXXNewExpr, isArrayForm) {
+  return Node.isArray();
----------------
We typically try to match the AST method names with the matcher names when possible, so this should be named `isArray()`.


https://reviews.llvm.org/D39366





More information about the cfe-commits mailing list