https://llvm.org/bugs/show_bug.cgi?id=24229
Bug ID: 24229
Summary: No completions in ctor-initializer after colon (':')
Product: clang
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Observation #1: No completions are provided after the colon in the constructor
initializer, see below.
Observation #2: Adding "{}" before the comment does not help.
Expected completions would include the class members and the base class
constructors ("OVERLOAD:"). After a comma (',') in the list, only the remaining
members should be provided as completions.
---8<--- shell session start ---8<---
% cat members-in-meminitlist.cpp
struct Foo {
Foo(int) : // Complete before '/' of this comment
int HELLO;
};
% clang -cc1 -code-completion-at members-in-meminitlist.cpp:2:16
members-in-meminitlist.cpp
members-in-meminitlist.cpp:4:14: error: expected '{'
int HELLO;
^
1 error generated.
zsh: exit 1
---8<--- shell session end ---8<---
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs