================
@@ -17,11 +17,29 @@
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/FormatString.h"
 #include "clang/AST/Type.h"
+#include "clang/Basic/TargetInfo.h"
+#include "llvm/Support/TextEncoding.h"
 
 namespace clang {
 
 class LangOptions;
 
+/// Creates a TextEncodingConverter for format string character comparisons.
+/// On z/OS format strings are IBM-1047 encoded, so each byte must be converted
----------------
s-barannikov wrote:

This is just how it is currently implemented: StringLiteral stores strings in 
execution encoding, and format string parsing walks through that string.
Traversing the source string would be complicated because it may consist of 
multiple concatenated pieces, contain escape sequences etc. In fact, we would 
have to reimplement all the same functionality that is already in 
StringLiteralParser.


https://github.com/llvm/llvm-project/pull/196568
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to