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

            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
          Assignee: unassignedclangb...@nondot.org
          Reporter: dummymail...@gmail.com
                CC: kli...@google.com, llvm-bugs@lists.llvm.org

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
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to