Bug ID: 36499
           Summary: No completion for incomplete type alias
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang

libclang seems to have added support for completion of incomplete types, but a
trivial type alias cause it to break:

template <typename T> struct A { void foo(); };

template <typename T> using B = A<T>;

template <typename T> struct C {
    A<T> a;
    B<T> b;
    C() {
        // a. completes
        // b. doesn't complete

Completion for a. gives:

❯❯❯ c-index-test -code-completion-at=sample.cpp:9:11 sample.cpp                 
StructDecl:{TypedText A}{Text ::} (75)
CXXMethod:{ResultType void}{TypedText foo}{LeftParen (}{RightParen )} (34)
NotImplemented:{TypedText template} (40)
Completion contexts:
Dot member access

Completion for b. gives:

❯❯❯ c-index-test -code-completion-at=sample.cpp:9:11 sample.cpp
Completion contexts:
Dot member access

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to