[clang] [Clang] Unify interface for accessing template arguments as written for class/variable template specializations (PR #81642)

Krystian Stasiowski via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 12:46:22 PST 2024


================
@@ -285,30 +285,23 @@ template<>
 class SpecializationDecl<int>;
 // CHECK: [[@LINE-1]]:7 | class(Gen,TS)/C++ | SpecializationDecl | c:@S at SpecializationDecl>#I | <no-cgname> | Decl,RelSpecialization | rel: 1
 // CHECK-NEXT: RelSpecialization | SpecializationDecl | c:@ST>1#T at SpecializationDecl
-// CHECK: [[@LINE-3]]:7 | class(Gen,TS)/C++ | SpecializationDecl | c:@S at SpecializationDecl>#I | <no-cgname> | Ref | rel: 0
----------------
sdkrystian wrote:

The "type as written" for a specialization is no longer being indexed as a reference to that specialization. The `TemplateArgumentLoc`s still are, but I need to add the corresponding `CHECK` lines so we know for sure 

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


More information about the cfe-commits mailing list