================
@@ -193,6 +194,22 @@ class TypeIndexer : public 
RecursiveASTVisitor<TypeIndexer> {
     return true;
   }
 
+  bool TraverseSubstTemplateTypeParmTypeLoc(SubstTemplateTypeParmTypeLoc TL,
+                                            bool TraverseQualifier) {
+    const auto *T = TL.getTypePtr();
+    if (!T)
+      return true;
+    auto QT = T->getReplacementType();
+    if (QT.isNull())
+      return true;
+    auto *CXXRD = QT->getAsCXXRecordDecl();
----------------
timon-ul wrote:

I guess this also means we do not directly want to add all instantiations with 
refs in this PR? Since I had added numbers for that as mentioned 
[here](https://github.com/llvm/llvm-project/pull/177273#issuecomment-3786918708).
 Makessense though if it is more work than just some minor tweaks.

https://github.com/llvm/llvm-project/pull/177273
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to