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: unassignedclangb...@nondot.org
          Reporter: ekmecics...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to