]> granicus.if.org Git - clang/commit
When providing a code-completion suggestion for a hidden name, include
authorDouglas Gregor <dgregor@apple.com>
Mon, 21 Sep 2009 20:12:40 +0000 (20:12 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 21 Sep 2009 20:12:40 +0000 (20:12 +0000)
commit456c4a17f4f02d660188dc9b2619c160dfbe3b68
tree3cc06566a8280b5c408b0ba43a0de0efd37837cb
parentb9d0ef76347574a147b8456b018fe94dc1e2be26
When providing a code-completion suggestion for a hidden name, include
a nested-name-specifier that describes how to refer to that name. For
example, given:

  struct Base { int member; };
  struct Derived : Base { int member; };

the code-completion result for a member access into "Derived" will
provide both "member" to refer to Derived::member (no qualification needed) and
"Base::member" to refer to Base::member (qualification included).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82476 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/member-access.cpp