diff options
author | Eric Liu <ioeric@google.com> | 2018-10-02 10:29:00 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-10-02 10:29:00 +0000 |
commit | b91e08197cf74c1c2d92f0fc112e941f8ef883a1 (patch) | |
tree | cb19afb931facbf4ed2947466f97bb70139c2079 /clang/lib/Sema/SemaLookup.cpp | |
parent | b9e17124ea24d7e83ddae68f8e05f632e7b7a28a (diff) | |
download | bcm5719-llvm-b91e08197cf74c1c2d92f0fc112e941f8ef883a1.tar.gz bcm5719-llvm-b91e08197cf74c1c2d92f0fc112e941f8ef883a1.zip |
[CodeComplete] Re-fix accessibilty of protected members from base class.
Summary:
The initial fix (r337453) had bug and was partially reverted (r338255).
This simplies the original fix by explicitly passing the naming class to the
completion consumer.
Reviewers: ilya-biryukov
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D52647
llvm-svn: 343575
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 6a1aae62413..8cb0fb4cb88 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -3619,8 +3619,9 @@ static void LookupVisibleDecls(DeclContext *Ctx, LookupResult &Result, // Find results in this base class (and its bases). ShadowContextRAII Shadow(Visited); - LookupVisibleDecls(RD, Result, QualifiedNameLookup, true, Consumer, - Visited, IncludeDependentBases, LoadExternal); + LookupVisibleDecls(RD, Result, QualifiedNameLookup, /*InBaseClass=*/true, + Consumer, Visited, IncludeDependentBases, + LoadExternal); } } |