[PATCH] D97681: [ASTMatchers] Add matchers for `CXXDeleteExpr`

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 1 05:58:04 PST 2021


njames93 created this revision.
njames93 added reviewers: klimek, aaron.ballman, steveire.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Add `deletes` traveral matcher which matches on the expression being delete
Extend `CXXNewExpr::isArray` matcher to work for `CXXDeleteExpr`. Currently this only matches array delete expressions as written.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97681

Files:
  clang-tools-extra/clang-tidy/bugprone/BoolPointerImplicitConversionCheck.cpp
  clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
  clang-tools-extra/clang-tidy/readability/UniqueptrDeleteReleaseCheck.cpp
  clang/docs/LibASTMatchersReference.html
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  clang/lib/ASTMatchers/Dynamic/Registry.cpp
  clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
  clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97681.327090.patch
Type: text/x-patch
Size: 10202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210301/92dee40d/attachment.bin>


More information about the cfe-commits mailing list