[clang] [HLSL] Permit template-less HLSL builtin types with default args (PR #216834)
Gregory Roth via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 11:01:12 PDT 2026
================
@@ -40,10 +40,16 @@ void entry() {
// CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:38:3, col:31>
// CHECK-NEXT: VarDecl 0x{{[0-9a-fA-F]+}} <col:3, col:24> col:24 Mat4x4d 'matrix<double, 4, 4>'
- // Verify that the implicit arguments generate the correct type.
- matrix<> ImpMat4x4;
+ // Verify that the default arguments generate the correct type.
+ matrix<> DefMat4x4;
// CHECK: DeclStmt 0x{{[0-9a-fA-F]+}} <line:44:3, col:21>
- // CHECK-NEXT: VarDecl 0x{{[0-9a-fA-F]+}} <col:3, col:12> col:12 ImpMat4x4 'matrix<>':'matrix<float, 4, 4>'
+ // CHECK-NEXT: VarDecl 0x{{[0-9a-fA-F]+}} <col:3, col:12> col:12 DefMat4x4 'matrix<>':'matrix<float, 4, 4>'
+
+ // Verify that the implicit arguments generate the correct type.
----------------
pow2clk wrote:
I was trying to differentiate this test description from the one above as it's not testing quite the same thing. All other locations previously said "implicit", including the vector-alias test. I really don't care how it's worded, but I agree it should be consistent
https://github.com/llvm/llvm-project/pull/216834
More information about the cfe-commits
mailing list