================
@@ -61,6 +61,7 @@ void testArraySubscripts(int *p, int **pp) {
       );
 
     int a[10];          // expected-warning{{'a' is an unsafe buffer that does 
not perform bounds checks}}
+                        // expected-note@-1{{change type of 'a' to 
'std::array' to harden it}}
----------------
jkorous-apple wrote:

I guess what we really want to say is "change the type of 'foo' to std::array 
so when you build the code with hardened libc++ all subscript operations on 
'foo' will be automatically bounds-safe" but that is too long and too complex 
for this particular communication channel.

How about:
"to enable hardening"
"to get it hardened"
"to designate it for hardening"
"to register it for hardening"

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

Reply via email to