================
@@ -117,13 +124,17 @@ ParsePrintfSpecifier(FormatStringHandler &H, const char
*&Beg, const char *E,
return true;
}
- if (*I == '{') {
+ if (FormatStrConverter.convertBasicChar(*I) == u8'{') {
++I;
unsigned char PrivacyFlags = 0;
StringRef MatchedStr;
do {
- StringRef Str(I, E - I);
+ const char *II;
+ std::string S(I, E - I);
+ for (unsigned long i = 0; i < S.length(); ++i)
----------------
s-barannikov wrote:
(nit) Never use `long` type, its size is non-portable across platforms.
```suggestion
for (size_t i = 0; i < S.length(); ++i)
```
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