================
@@ -1793,6 +1793,20 @@ bool CursorVisitor::VisitAdjustedTypeLoc(AdjustedTypeLoc
TL) {
return Visit(TL.getOriginalLoc());
}
+bool CursorVisitor::VisitAutoTypeLoc(AutoTypeLoc TL) {
+
+ if (TL.isConstrained()) {
+ if (auto *CR = TL.getConceptReference()) {
+ if (CR->getNamedConcept()) {
----------------
Serafean wrote:
I honestly don't know: I don't know much about clang internals. As I said in
the main message, I copied the condition from
[`CursorVisitor::VisitTypeConstraint`](https://github.com/llvm/llvm-project/blob/main/clang/tools/libclang/CIndex.cpp#L1346
)
If I had to guess, it can't. But it would be just a guess.
https://github.com/llvm/llvm-project/pull/172472
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits