[clang] [clang] Constant-evaluate format strings as last resort (PR #135864)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 15 21:05:57 PDT 2025


================
@@ -10170,6 +10170,8 @@ def warn_format_bool_as_character : Warning<
   "using '%0' format specifier, but argument has boolean value">,
   InGroup<Format>;
 def note_format_string_defined : Note<"format string is defined here">;
+def note_format_string_evaluated_to : Note<
+  "format string was constant-evaluated">;
----------------
hubert-reinterpretcast wrote:

> The point is taken. Would you like to suggest an alternate wording?

"format string was evaluated, for diagnostic purposes, to"?

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


More information about the cfe-commits mailing list