<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang completer doesn't work for header files with templates"
href="http://llvm.org/bugs/show_bug.cgi?id=17008">17008</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang completer doesn't work for header files with templates
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fismoll8@yahoo.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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++.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>