]> granicus.if.org Git - clang/commit
[ASTMatchers] Allow hasName() to look through inline namespaces
authorSamuel Benzaquen <sbenza@google.com>
Fri, 5 Feb 2016 18:29:24 +0000 (18:29 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Fri, 5 Feb 2016 18:29:24 +0000 (18:29 +0000)
commitc1abc952dc13cf141bdc0129debbf409f6dc9ece
tree24705af2d56222e699a943682a3203d8c76222e7
parent508fd615f6d875d09332a57a9b9f085f724c41b8
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259898 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchersInternal.h
lib/ASTMatchers/ASTMatchersInternal.cpp
unittests/ASTMatchers/ASTMatchersTest.cpp