Author: Deric C. Date: 2026-07-22T19:46:03Z New Revision: 7e9782bad19c1995d350415f5e68c6d68330f69f
URL: https://github.com/llvm/llvm-project/commit/7e9782bad19c1995d350415f5e68c6d68330f69f DIFF: https://github.com/llvm/llvm-project/commit/7e9782bad19c1995d350415f5e68c6d68330f69f.diff LOG: [HLSL] Move sema tests out of ParserHLSL into SemaHLSL/Attributes (#211353) This PR moves sema tests that were misplaced in `clang/test/ParserHLSL` into a more appropriate location: `clang/test/SemaHLSL/Attributes` These tests exercise `[[hlsl::...]]` attribute (resource_class, contained_type, is_array, is_ms, is_rov, raw_buffer, dimension) diagnostics from `DiagnosticSemaKinds.td`, relating to: - 'hlsl::X' attribute cannot be applied to a declaration - attribute takes one argument / takes no arguments - can be used only on HLSL intangible type '__hlsl_resource_t' - attribute is already applied / applied with different arguments - ResourceClass attribute argument not supported Which are appropriately related to semantics rather than parsing. Added: clang/test/SemaHLSL/Attributes/hlsl_contained_type_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_is_array_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_is_ms_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_is_rov_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_raw_buffer_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_resource_class_attr_error.hlsl clang/test/SemaHLSL/Attributes/hlsl_resource_dimension_attr_error.hlsl Modified: Removed: clang/test/ParserHLSL/hlsl_contained_type_attr_error.hlsl clang/test/ParserHLSL/hlsl_is_array_attr_error.hlsl clang/test/ParserHLSL/hlsl_is_ms_attr_error.hlsl clang/test/ParserHLSL/hlsl_is_rov_attr_error.hlsl clang/test/ParserHLSL/hlsl_raw_buffer_attr_error.hlsl clang/test/ParserHLSL/hlsl_resource_class_attr_error.hlsl clang/test/ParserHLSL/hlsl_resource_dimension_attr_error.hlsl ################################################################################ diff --git a/clang/test/ParserHLSL/hlsl_contained_type_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_contained_type_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_contained_type_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_contained_type_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_is_array_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_is_array_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_is_array_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_is_array_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_is_ms_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_is_ms_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_is_ms_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_is_ms_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_is_rov_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_is_rov_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_is_rov_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_is_rov_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_raw_buffer_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_raw_buffer_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_raw_buffer_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_raw_buffer_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_resource_class_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_resource_class_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_resource_class_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_resource_class_attr_error.hlsl diff --git a/clang/test/ParserHLSL/hlsl_resource_dimension_attr_error.hlsl b/clang/test/SemaHLSL/Attributes/hlsl_resource_dimension_attr_error.hlsl similarity index 100% rename from clang/test/ParserHLSL/hlsl_resource_dimension_attr_error.hlsl rename to clang/test/SemaHLSL/Attributes/hlsl_resource_dimension_attr_error.hlsl _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
