[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:43:33 PST 2024


================
@@ -222,7 +220,7 @@ int binTempl<int, U>;
 
 template<class U>
 float binTempl<float, U> = 1;
-// CHECK:      VarTemplatePartialSpecializationDecl 0x{{[^ ]*}} <line:{{[0-9]+}}:1, line:{{[0-9]+}}:24> col:7 binTempl 'float' cinit
----------------
sdkrystian wrote:

I removed `cinit` because the output will contain "`explicit_specialization`" before it. 

Despite the output being identical to our current output, this somehow seems to affect whether the tests pass if `--check-prefix=...` is removed from the test command line arguments. If the check prefix arguments are retained and we instead make the expected output lines for `DIRECT`/`SERIALIZED` the same, the tests pass. Merging the two lines into a single `CHECK` line results in the change being necessary for the tests to ass...

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


More information about the cfe-commits mailing list