[clang] [clang-tools-extra] Handle recording inheritance for templates (PR #177273)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 2 00:46:49 PST 2026
================
@@ -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:
Good catch, yeah will add a TODO.
https://github.com/llvm/llvm-project/pull/177273
More information about the cfe-commits
mailing list