[ASTMatchers] Added hasDirectBase Matcher
authorNathan James <n.james93@hotmail.co.uk>
Tue, 7 Jul 2020 15:05:09 +0000 (16:05 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 7 Jul 2020 15:05:11 +0000 (16:05 +0100)
commitb0d3ea171bd56b3b079be9213935925e1499df15
tree15d440ef8951f601cd23eb893127c0f87e656329
parent52495b98eecefcbaea2e30edec6816e43653d175
[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
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp