================
@@ -3859,7 +3862,7 @@ def warn_availability_fuchsia_unavailable_minor : Warning<
   InGroup<Availability>;
 
 def warn_unguarded_availability :
-  Warning<"%0 is only available on %1 %2 or newer">,
+  Warning<"%0 %select{is only|is not}5 available %select{|in %4 environment 
}3on %1 %2 %select{or newer|}5">,
----------------
hekota wrote:

I have modified the diagnostic message when the API is not available in the 
target environment for any version to say that it is unavailable and added a 
note with additional information like this:

```
warning: 'A' is unavailable
note: 'A' has been marked as being introduced in %attr-platform %attr-version 
%attr-env environment here, but the deployment target is %target-platform 
%target -version %target-env environment.
```

https://github.com/llvm/llvm-project/pull/89809
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to