[clang] [HLSL] Add bounds checks for the hlsl vector arguments and return types (PR #130724)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 12:05:16 PDT 2025


================
@@ -45,6 +45,10 @@ template <typename T> struct is_arithmetic {
   static const bool Value = __is_arithmetic(T);
 };
 
+template <typename T, int N>
+using HLSL_FIXED_VECTOR =
----------------
bogner wrote:

`HLSL_FIXED_VECTOR` looks like a macro to me rather than a type. Why use all caps convention here?

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


More information about the cfe-commits mailing list