[llvm-branch-commits] [clang] [llvm] Continuation of fexec-charset (PR #169803)

Sergei Barannikov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 4 05:51:28 PDT 2026


================
@@ -207,86 +199,104 @@ clang::analyze_format_string::ParseVectorModifier(FormatStringHandler &H,
   return false;
 }
 
-bool
-clang::analyze_format_string::ParseLengthModifier(FormatSpecifier &FS,
-                                                  const char *&I,
-                                                  const char *E,
-                                                  const LangOptions &LO,
-                                                  bool IsScanf) {
+bool clang::analyze_format_string::ParseLengthModifier(
+    FormatSpecifier &FS, const char *&I, const char *E, const LangOptions &LO,
+    const llvm::TextEncodingConverter &FormatStrConverter, bool IsScanf) {
   LengthModifier::Kind lmKind = LengthModifier::None;
   const char *lmPosition = I;
-  switch (*I) {
-    default:
-      return false;
-    case 'h':
+  switch (FormatStrConverter.convert(*I)) {
----------------
s-barannikov wrote:

Did this in #195644. I can close it if you're already halfway there.
Conflict resolution should be as simple as "accept mine", but I can help resolve conflicts if that doesn't work, just let me know.


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


More information about the llvm-branch-commits mailing list