Skip to content

[HLSL] Implement availability diagnostic - Strict mode #90096

Closed
@hekota

Description

@hekota

Implement strict mode of the availability diagnostic.

In addition to the default mode diagnostics, the strict mode will also emit an error during parsing of any callee of a CallExpr that has availability annotation that marks it as unavailable for the target shader model and stage (for non-library shaders) or the target shader model (for library shaders) - regardless of reachability.

A user enables strict mode by passing -fhlsl-strict-diagnostics.

See HLSL Availability Diagnostic spec for more details.

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions