[clang] [HLSL] Default and Relaxed Availability Diagnostics (PR #92704)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Fri May 24 10:12:01 PDT 2024
================
@@ -290,3 +294,295 @@ void SemaHLSL::DiagnoseAttrStageMismatch(
<< A << HLSLShaderAttr::ConvertShaderTypeToStr(Stage)
<< (AllowedStages.size() != 1) << join(StageStrings, ", ");
}
+
+namespace {
+
+/// This class implements HLSL availability diagnostics for default
+/// and relaxed mode
+///
+/// The goal of this diagnostic is to emit an error or warning when an
+/// unavailable API is found in a code that is reachable from the shader
+/// entry function or from an exported function (when compiling shader
----------------
damyanp wrote:
```suggestion
/// entry function or from an exported function (when compiling a shader
```
https://github.com/llvm/llvm-project/pull/92704
More information about the cfe-commits
mailing list