HomePhabricator

[ASTMatchers] Allow hasName() to look through inline namespaces

Description

[ASTMatchers] Allow hasName() to look through inline namespaces

Summary:
Allow hasName() to look through inline namespaces.
This will fix the interaction between some clang-tidy checks and libc++.

libc++ defines names in an inline namespace named std::<version_#>.
When we try to match a name using hasName("std::xxx") it fails to match and the clang-tidy check does not work.

Reviewers: klimek

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D15506

Details

Committed
sbenzaFeb 5 2016, 10:29 AM
Differential Revision
D15506: [ASTMatchers] Allow hasName() to look through inline namespaces
Branches
Unknown
Tags
Unknown