[PATCH] D49421: [CodeComplete] Fix accessibilty of protected members from base class.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 17 05:48:43 PDT 2018


ioeric created this revision.
ioeric added reviewers: aaron.ballman, sammccall.
Herald added a subscriber: cfe-commits.

Currently, protected members from base classes are marked as
inaccessible when completing in derived class. This patch fixes the problem by
setting the naming class correctly when looking up results in base class
according to [11.2.p5].


Repository:
  rC Clang

https://reviews.llvm.org/D49421

Files:
  lib/Sema/SemaAccess.cpp
  lib/Sema/SemaCodeComplete.cpp
  test/Index/complete-access-checks.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49421.155864.patch
Type: text/x-patch
Size: 5182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180717/3280518e/attachment-0001.bin>


More information about the cfe-commits mailing list