Created attachment 24738
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.
bug.cpp
(1977 bytes, text/x-csrc)