https://github.com/llvm/llvm-project/pull/91393 removed ClassTemplateSpecializationDecl::getTypeAsWritten. This was used to get the SourceLocation for the name of a ClassTemplatePartialSpecializationDecl in a few places, which is the same SourceLocation returned by Decl::getLocation. This fix should be backwards compatible.
The removal of getTypeAsWritten also means that there no longer exists a TemplateSpecializationTypeLoc to be traversed by RecursiveASTVisitor, so this PR also includes a commit which ensures that explicit specializations/instantiations are correctly renamed.
https://github.com/llvm/llvm-project/pull/91393 removed
ClassTemplateSpecializationDecl::getTypeAsWritten
. This was used to get theSourceLocation
for the name of aClassTemplatePartialSpecializationDecl
in a few places, which is the sameSourceLocation
returned byDecl::getLocation
. This fix should be backwards compatible.The removal of
getTypeAsWritten
also means that there no longer exists aTemplateSpecializationTypeLoc
to be traversed byRecursiveASTVisitor
, so this PR also includes a commit which ensures that explicit specializations/instantiations are correctly renamed.See also https://github.com/marxin/cvise/issues/142.