]> granicus.if.org Git - clang/commit
Consider nested namespaces in the canonical namespace as canonical as well.
authorEric Liu <ioeric@google.com>
Fri, 25 Nov 2016 12:39:03 +0000 (12:39 +0000)
committerEric Liu <ioeric@google.com>
Fri, 25 Nov 2016 12:39:03 +0000 (12:39 +0000)
commit9cf062f7011945788916da685db2e92ecced411d
treea9c8652552511d15a4401f5dcabc4a5195340ea8
parentb1f9c060a1d2b78c8bb96dde8e524cb550b10375
Consider nested namespaces in the canonical namespace as canonical as well.

Summary:
For example, this case was missed when looking for different but canonical
namespaces. UseContext in this case should be considered as in the canonical
namespace.
```
namespace a { namespace b { <FromContext> } }
namespace a { namespace b { namespace c { <UseContext> } } }
```
Added some commenting.

Reviewers: bkramer

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D27125

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/Core/Lookup.cpp
unittests/Tooling/LookupTest.cpp