<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Completion offers namespace items after Class::"
href="https://bugs.llvm.org/show_bug.cgi?id=42646">42646</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Completion offers namespace items after Class::
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>libclang
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nikolai.kosjar@qt.io
</td>
</tr>
<tr>
<th>CC</th>
<td>klimek@google.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>This is a regression from clang-7 to clang-8/trunk.
### Test with clang 8/trunk
~ % F=/tmp/reproducer.cpp
~ % cat -n $F
1 namespace std {};
2 class Class { static void foo(); };
3 Class::
4
~ % CINDEXTEST_EDITING=1
/d2/llvm/trunk/vanilla/builds/DebugShared/bin/c-index-test
-code-completion-at=$F:3:8 $F | grep std
Namespace:{TypedText std}{Text ::} (75)
### Test with clang-7
~ % CINDEXTEST_EDITING=1 /usr/bin/c-index-test-7 -code-completion-at=$F:3:8 $F
| grep std
zsh: done CINDEXTEST_EDITING=1 /usr/bin/c-index-test-7
-code-completion-at=$F:3:8 $F |
zsh: exit 1 grep --color=auto std
Works as expected without "CINDEXTEST_EDITING=1". However, for an IDE the
effect of CINDEXTEST_EDITING=1 is crucial (preamble generation + caching
completions).</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>