usx95 wrote:

I think `-Wlifetime-safety-suggestions` suggests useful lifetime annotations. 
It isn't only about one-off adoption. It also helps ensure that new code 
annotates the lifetime contract on its interfaces correctly.

The verbosity is somewhat intentional, and I think it fits what users expect 
from `-Weverything`.

On a related note, lifetime safety does have experimental warnings (e.g., 
`-Wlifetime-safety-invalidations`). These could benefit from an umbrella group, 
say `-Wexperimental`, for warnings that aren't recommended for adoption yet 
(likely needs an RFC). Even with such a group, I don't think the suggestions 
would qualify as experimental.

https://github.com/llvm/llvm-project/pull/232300
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to