Page MenuHomePhabricator

[clang][AST] Add `CXXBaseSpecifier` matcher support
Needs ReviewPublic

Authored by nick on Oct 19 2019, 1:59 PM.

Details

Reviewers
klimek
Summary

Required for capturing base specifier in matchers:

`cxxRecordDecl(hasBase(cxxBaseSpecifier().bind("base")))`

Will make implementation of D69000 much clearer and simpler.

Diff Detail

Event Timeline

nick created this revision.Oct 19 2019, 1:59 PM

Missing docs regeneration (clang/docs/tools/dump_ast_matchers.py i think)

Needs more tests - what happens with multiple inheritance, what about inheriting from inherited?

nick updated this revision to Diff 225770.Oct 19 2019, 3:15 PM

Regenerated the docs, added more tests.

nick updated this revision to Diff 225783.Oct 20 2019, 7:19 AM

Fixed typo.