[all-commits] [llvm/llvm-project] 2f1810: [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-...

Nikita Kniazev via All-commits all-commits at lists.llvm.org
Thu Apr 8 16:06:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f181086b5cbbe83c4492aa44484a77ed06ec812
      https://github.com/llvm/llvm-project/commit/2f181086b5cbbe83c4492aa44484a77ed06ec812
  Author: Nikita Kniazev <kniazev.nikita at gmail.com>
  Date:   2021-04-09 (Fri, 09 Apr 2021)

  Changed paths:
    M clang/docs/LibASTMatchersReference.html
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/lib/ASTMatchers/ASTMatchersInternal.cpp
    M clang/lib/ASTMatchers/Dynamic/Registry.cpp
    M clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
    M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
    M clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp

  Log Message:
  -----------
  [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-top-level)

Required for capturing base specifier in matchers:
  `cxxRecordDecl(hasDirectBase(cxxBaseSpecifier().bind("base")))`

Reviewed By: steveire, aaron.ballman

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




More information about the All-commits mailing list