[llvm-branch-commits] [clang] [clang-tools-extra] [llvm] Add format string handling (PR #196568)

Hubert Tong via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Nov 14 21:46:20 PST 2026


hubert-reinterpretcast wrote:

> To make it support mutlibyte characters, we would need to know how to advance the format string iterator (read: determine multibyte character "length") when advancing through the format string. That's a big change...

Yes, indeed. But if we're willing to compromise on what we will support "right away", then the general idea of assuming a specific, fixed target encoding (as GCC has been doing in ignoring `-fexec-charset` for format string checking) is what this patch does already.

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


More information about the llvm-branch-commits mailing list