[llvm-bugs] [Bug 49907] New: Clang indexing doesn't detect C++20 ConceptDecls

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 9 09:13:06 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49907

            Bug ID: 49907
           Summary: Clang indexing doesn't detect C++20 ConceptDecls
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Tooling
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ekmecicspam at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24738
  --> https://bugs.llvm.org/attachment.cgi?id=24738&action=edit
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.

-- 
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/20210409/d2ebcf12/attachment.html>


More information about the llvm-bugs mailing list