[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 11:37:13 PDT 2024
================
@@ -12342,7 +12342,13 @@ def err_hlsl_missing_semantic_annotation : Error<
def err_hlsl_init_priority_unsupported : Error<
"initializer priorities are not supported in HLSL">;
-def err_hlsl_unsupported_register_type : Error<"invalid resource class specifier '%0' used; expected 'b', 's', 't', or 'u'">;
+def warn_hlsl_user_defined_type_missing_member: Warning<"binding type '%select{t|u|b|s|c}0' only applies to types containing %select{srv resources|uav resources|constant buffer resources|sampler state|numeric types}0">, InGroup<DisallowLegacyBindingRules>;
+def err_hlsl_binding_type_mismatch: Error<"binding type '%select{t|u|b|s|c}0' only applies to %select{srv resources|uav resources|constant buffer resources|sampler state|numeric variables in the global scope}0">;
+def err_hlsl_binding_type_invalid: Error<"binding type '%0' is invalid">;
----------------
hekota wrote:
SRV and UAV are acronyms and should be capitalized.
https://github.com/llvm/llvm-project/pull/97103
More information about the cfe-commits
mailing list