[LLVMbugs] [Bug 20220] New: Code completion reports protected C++ members of a base class as inaccessible

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 6 01:59:35 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20220

            Bug ID: 20220
           Summary: Code completion reports protected C++ members of a
                    base class as inaccessible
           Product: new-bugs
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Thomas.Roefer at dfki.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When a C++ class inherits protected members from its base class, they are not
offered for code completion. The author of CodeLite says that

clang_getCompletionAvailability(str)

returns that "str" is unavailable if "str" was declared protected. He asked me
to report the bug here. Apple's Xcode also displays protected members as
inaccessible, but in contrast to CodeLite, they are still shown and selectable.

Example:

class A
{
protected:
  int veryLongName;
};

class B : public A
{
  void fn()
  {
    ver // ask for code completion here
  }
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140706/6279d813/attachment.html>


More information about the llvm-bugs mailing list