[llvm-bugs] [Bug 36499] New: No completion for incomplete type alias
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 23 21:06:42 PST 2018
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: unassignedclangbugs at nondot.org
Reporter: dummymail000 at gmail.com
CC: klimek at google.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180224/2f62c0a2/attachment.html>
More information about the llvm-bugs
mailing list