http://llvm.org/bugs/show_bug.cgi?id=17008
Bug ID: 17008
Summary: Clang completer doesn't work for header files with
templates
Product: clang
Version: 3.3
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
I have tested the following header
file:
template <class T>
class node
{
private:
node *next;
T key;
public:
// constructors
node()
{
this->
}
node(T key, node *next);
};
this-> will not complete using YouCompleteMe, a vim-script utilizing clang's
autocompletion tools. If you delete the "template <class T>
line, it will complete with ycm. More details can be found on the YouCompleteMe
github page and conversations I've had with the developer.
I believe the issues above to be caused by how clang parses templates. My
compiler flags are clang++ -I/usr/lib/c++/v1 -O0 -emit-llvm -g3
-Wall -c -fmessage-length=0 -std=c++11 -stdlib=libc++.
--
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