[all-commits] [llvm/llvm-project] b0d3ea: [ASTMatchers] Added hasDirectBase Matcher

Nathan James via All-commits all-commits at lists.llvm.org
Tue Jul 7 08:05:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b0d3ea171bd56b3b079be9213935925e1499df15
      https://github.com/llvm/llvm-project/commit/b0d3ea171bd56b3b079be9213935925e1499df15
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

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

  Log Message:
  -----------
  [ASTMatchers] Added hasDirectBase Matcher

Adds a matcher called `hasDirectBase` for matching the `CXXBaseSpecifier` of a class that directly derives from another class.

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list