<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 - Clang indexing doesn't detect C++20 ConceptDecls"
href="https://bugs.llvm.org/show_bug.cgi?id=49907">49907</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang indexing doesn't detect C++20 ConceptDecls
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Tooling
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ekmecicspam@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24738" name="attach_24738" title="Example code for this bug">attachment 24738</a> <a href="attachment.cgi?id=24738&action=edit" title="Example code for this bug">[details]</a></span>
Example code for this bug
I'm having trouble getting Clang's IndexingAction to detect
clang::ConceptDecls.
I have a minimum working example (reproduced in bug.cpp) that initializes
an IndexingAction and runs it over some test code that contains two
ConceptDecls. I've verified that the frontend "sees" these decls by
dumping the AST.
However, the IndexingAction is set up to print a simple message
when it encounters any kind of decl, and no such message is
printed when running over the aforementioned code. Ergo, it
seems like ConceptDecls are invisible to the IndexingAction,
whereas other decls are detected properly (clang::CXXRecordDecl,
clang::FunctionDecl, etc).
I've reproduced this problem in LLVM/Clang 11 and 12.</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>