HomePhabricator

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

Authored by nick on Apr 8 2021, 3:55 PM.

Description

[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