[clang] [clang] Reword apologetic Clang diagnostic messages (PR #76310)

via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 24 09:49:19 PST 2023


================
@@ -9913,11 +9913,11 @@ def warn_new_dangling_initializer_list : Warning<
   "will be destroyed at the end of the full-expression">,
   InGroup<DanglingInitializerList>;
 def warn_unsupported_lifetime_extension : Warning<
-  "sorry, lifetime extension of "
+  "lifetime extension of "
   "%select{temporary|backing array of initializer list}0 created "
-  "by aggregate initialization using default member initializer "
+  "by aggregate initialization using a default member initializer "
   "is not supported; lifetime of %select{temporary|backing array}0 "
-  "will end at the end of the full-expression">, InGroup<Dangling>;
+  "will terminate at the end of the full-expression">, InGroup<Dangling>;
----------------
cor3ntin wrote:

end is the more correct terminology here, it is a term of art - and we should avoid overloading "terminate"

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


More information about the cfe-commits mailing list