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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
5772 | We typically try to match the AST method names with the matcher names when possible, so this should be named isArray(). |
We typically try to match the AST method names with the matcher names when possible, so this should be named isArray().