[LLVMbugs] [Bug 17008] New: Clang completer doesn't work for header files with templates
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 26 18:10:42 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: fismoll8 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130827/e0a18770/attachment.html>
More information about the llvm-bugs
mailing list