aaron.ballman added inline comments.
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:6763
+/// matches the expression 'new (Storage) MyClass()'.
+AST_MATCHER(CXXNewExpr, isPlacement) { return Node.getNumPlacementArgs() > 0; }
+
I think a better design
merge_guards_bot added a comment.
{icon times-circle color=red} Unit tests: fail. 62272 tests passed, 1 failed
and 827 were skipped.
failed: Clang.CodeGenOpenCL/amdgpu-features.cl
{icon check-circle color=green} clang-tidy: pass.
{icon check-circle color=green} clang-format: pass.
Build art
njames93 created this revision.
Herald added subscribers: cfe-commits, dexonsmith, steven_wu, hiraditya,
mehdi_amini.
Herald added a project: clang.
njames93 added a reviewer: aaron.ballman.
Adds a traversal matcher called `isPlacement` that matches on `placement new`
operators.
Repository: