================ @@ -12075,6 +12075,9 @@ def note_unsafe_buffer_variable_fixit_together : Note< "%select{|, and change %2 to safe types to make function %4 bounds-safe}3">; def note_safe_buffer_usage_suggestions_disabled : Note< "pass -fsafe-buffer-usage-suggestions to receive code hardening suggestions">; +def warn_unsafe_buffer_usage_in_container : Warning< + "%select{the two-parameter std::span construction is unsafe as it can introduce mismatch between buffer size and the bound information}0">, ---------------- jkorous-apple wrote:
Looks like we should remove the select. https://github.com/llvm/llvm-project/pull/77148 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits