llvm-project
7e9782ba - [HLSL] Move sema tests out of ParserHLSL into SemaHLSL/Attributes (#211353)

Commit
103 days ago
[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.
Author
Parents
Loading