[clang] [HLSL] Strict Availability Diagnostics (PR #93860)

Damyan Pepper via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 17 18:24:11 PDT 2024


================
@@ -157,10 +157,12 @@ static bool ShouldDiagnoseAvailabilityInContext(
     }
   }
 
-  // In HLSL, emit diagnostic during parsing only if the diagnostic
-  // mode is set to strict (-fhlsl-strict-availability), and either the decl
-  // availability is not restricted to a specific environment/shader stage,
-  // or the target stage is known (= it is not shader library).
+  // In HLSL, skip emitting diagnostic is the diagnostic mode is not set to
----------------
damyanp wrote:

```suggestion
  // In HLSL, skip emitting diagnostic if the diagnostic mode is not set to
```

https://github.com/llvm/llvm-project/pull/93860


More information about the cfe-commits mailing list