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

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 02:15:17 PDT 2017


baloghadamsoftware created this revision.
Herald added a subscriber: rnkovacs.

Two new matchers for ``CXXNewExpr`` are added which may be useful e.g. in clang-tidy checkers. One of them is ``isArrayForm`` which matches ``new[]`` but not plain ``new`. The other one, ``hasArraySize`` matches ``new[]`` for a given size.


https://reviews.llvm.org/D39366

Files:
  docs/LibASTMatchersReference.html
  include/clang/ASTMatchers/ASTMatchers.h
  lib/ASTMatchers/Dynamic/Registry.cpp
  unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39366.120561.patch
Type: text/x-patch
Size: 4736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171027/f452a700/attachment.bin>


More information about the cfe-commits mailing list