[llvm-bugs] [Bug 28733] New: Declarator has top priority after '=' in enum variable declaration

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 27 00:57:43 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28733

            Bug ID: 28733
           Summary: Declarator has top priority after '=' in enum variable
                    declaration
           Product: clang
           Version: 3.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nikolai.kosjar at qt.io
                CC: klimek at google.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat -n c1.cpp
     1  enum EnumType { EnumValue };
     2
     3  void c1()
     4  {
     5      EnumType et = // Complete here
     6  }
     7

$ /usr/lib/llvm-3.8/bin/c-index-test -code-completion-at=c1.cpp:5:18 c1.cpp |
grep Enum
 EnumDecl:{TypedText EnumType} (12)
 EnumConstantDecl:{ResultType EnumType}{TypedText EnumValue} (16)
 VarDecl:{ResultType EnumType}{TypedText et} (8)
 Enum tag

==> "et" has top priority (8) although "EnumType"/"EnumValue" are more probable
candidates.

-- 
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/20160727/eb8a9d01/attachment.html>


More information about the llvm-bugs mailing list