[all-commits] [llvm/llvm-project] a156a0: [ASTMatchers] Add hasPlacementArg and hasAnyPlacem...

Nathan James via All-commits all-commits at lists.llvm.org
Thu Jan 30 02:16:10 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a156a0e28df4751f812c84437321339c2eb33af3
      https://github.com/llvm/llvm-project/commit/a156a0e28df4751f812c84437321339c2eb33af3
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-01-30 (Thu, 30 Jan 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/cert/DefaultOperatorNewAlignmentCheck.cpp
    M clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
    M clang/docs/LibASTMatchersReference.html
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/lib/ASTMatchers/Dynamic/Registry.cpp
    M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

  Log Message:
  -----------
  [ASTMatchers] Add hasPlacementArg and hasAnyPlacementArg traversal matcher for CXXNewExpr

Summary: Adds new traversal matchers called `hasPlacementArg` and `hasAnyPlacementArg` that matches on arguments to `placement new` operators.

Reviewers: aaron.ballman

Reviewed By: aaron.ballman

Subscribers: merge_guards_bot, mehdi_amini, hiraditya, steven_wu, dexonsmith, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73562




More information about the All-commits mailing list