summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SystemInitializerFull.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2016-08-02 10:43:10 +0000
committerHaojian Wu <hokein@google.com>2016-08-02 10:43:10 +0000
commitadedac68dc300cb87eccfb9735d00325727ac58a (patch)
treee4bcbdaeabec2647d1b60ae3c27d997e2dec51e1 /lldb/source/API/SystemInitializerFull.cpp
parent6c3591d33e8b7f4675e6ccdfadc647d0c2357564 (diff)
downloadbcm5719-llvm-adedac68dc300cb87eccfb9735d00325727ac58a.tar.gz
bcm5719-llvm-adedac68dc300cb87eccfb9735d00325727ac58a.zip
[include-fixer] Correct nested class search for identifiers with scoped information
Summary: include-fixer will firstly try to use scoped namespace context information to search identifier. However, in some cases, it's unsafe to do nested class search, because it might treat the identifier as a nested class of scoped namespace. Given the following code, and the symbol database only has two classes: "foo" and "b::Bar". namespace foo { Bar t; } Before getting fixing, include-fixer will never search "Bar" symbol. Because it firstly tries to search "foo::Bar", there is no "Bar" in foo namespace, then it finds "foo" in database finally. So it treats "Bar" is a nested class of "foo". Reviewers: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D23023 llvm-svn: 277442
Diffstat (limited to 'lldb/source/API/SystemInitializerFull.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud