[llvm-branch-commits] [clang-tools-extra] [clang-doc] Update serializer for improved template handling (PR #138065)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri May 9 20:20:37 PDT 2025
================
@@ -710,11 +897,12 @@ emitInfo(const RecordDecl *D, const FullComment *FC, Location Loc,
// What this is a specialization of.
auto SpecOf = CTSD->getSpecializedTemplateOrPartial();
- if (auto *CTD = dyn_cast<ClassTemplateDecl *>(SpecOf))
- Specialization.SpecializationOf = getUSRForDecl(CTD);
- else if (auto *CTPSD =
- dyn_cast<ClassTemplatePartialSpecializationDecl *>(SpecOf))
- Specialization.SpecializationOf = getUSRForDecl(CTPSD);
+ if (auto *SpecPtr = dyn_cast<ClassTemplateDecl *>(SpecOf)) {
+ Specialization.SpecializationOf = getUSRForDecl(SpecPtr);
+ } else if (auto *SpecPtr =
+ dyn_cast<ClassTemplatePartialSpecializationDecl *>(SpecOf)) {
+ Specialization.SpecializationOf = getUSRForDecl(SpecPtr);
+ }
----------------
ilovepi wrote:
I think I've gotten them all.
https://github.com/llvm/llvm-project/pull/138065
More information about the llvm-branch-commits
mailing list