llvm-project/clang/lib/ASTMatchers
Samuel Benzaquen 8e566f3740 [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

llvm-svn: 259898
2016-02-05 18:29:24 +00:00
..
Dynamic Reapply r259210 with a fix for RegistryTest.cpp. 2016-02-01 14:11:47 +00:00
ASTMatchFinder.cpp Use data recursion in RecursiveASTVisitor when traversing Stmt and Expr nodes. 2015-11-24 03:09:01 +00:00
ASTMatchersInternal.cpp [ASTMatchers] Allow hasName() to look through inline namespaces 2016-02-05 18:29:24 +00:00
CMakeLists.txt ASTMatchers: Add an explicit dependency on libclangBasic. 2015-03-12 16:25:19 +00:00