[clang] [clang-tools-extra] Handle recording inheritance for templates (PR #177273)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 22 18:14:20 PDT 2026


================
@@ -193,6 +194,25 @@ class TypeIndexer : public RecursiveASTVisitor<TypeIndexer> {
     return true;
   }
 
+  bool TraverseSubstTemplateTypeParmTypeLoc(SubstTemplateTypeParmTypeLoc TL,
+                                            bool TraverseQualifier) {
+    // TODO: For now if we are a templated field and the substituted type is of
----------------
HighCommander4 wrote:

nit: Place this comment above the line `auto *CXXRD = QT->getAsCXXRecordDecl();`, because it's at that point that we'll need to make changes to address the TODO (basically, looking for additional declarations referenced by `QT`).

https://github.com/llvm/llvm-project/pull/177273


More information about the cfe-commits mailing list