[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:03:44 PST 2026
================
@@ -134,6 +140,19 @@ class TextEncodingConverter {
return std::string(Result);
return EC;
}
+
+ /// Returns true if this converter performs no conversion.
+ bool isNoop() const { return Converter->isNoop(); }
+
+ // This method is used in format string handling and is only intended
+ // to support basic charsets, not multibyte characters.
----------------
hubert-reinterpretcast wrote:
Just a drive-by comment, so please take with a grain of salt. Maybe returning an `ErrorOr<char>` makes sense?
https://github.com/llvm/llvm-project/pull/196568
More information about the llvm-branch-commits
mailing list