]> granicus.if.org Git - clang/commit
[ASTMatchers] Matchers for new[] operators
authorAdam Balogh <adam.balogh@ericsson.com>
Thu, 23 Nov 2017 12:43:20 +0000 (12:43 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Thu, 23 Nov 2017 12:43:20 +0000 (12:43 +0000)
commitbe065bce297cc2dd2773caf4346c218d04492913
tree35e24f0b6e4e31add4e8e5ba5309932445289525
parent6428eaf621c44d0cf2c16536e6e28c796feed958
[ASTMatchers] Matchers for new[] operators

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@318909 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp