[flang-commits] [clang-tools-extra] [clang] [flang] [libc] [llvm] Fix clang to recognize new C23 modifiers %w and %wf when printing (PR #71771)

Aaron Ballman via flang-commits flang-commits at lists.llvm.org
Tue Nov 14 10:50:40 PST 2023


================
@@ -484,6 +484,26 @@ bool clang::analyze_format_string::parseFormatStringHasFormattingSpecifiers(
   return false;
 }
 
+ArgType clang::analyze_format_string::wToArgType(
+    int size, bool fast, ASTContext &C) {
+  ArgType fastType = C.getTargetInfo().getTriple().isArch64Bit() ? C.LongLongTy : C.IntTy;
----------------
AaronBallman wrote:

This also seems incorrect -- we should be looking at the underlying type for the specified fastest (or exact) width integer. But again, not entirely clear how to do that from this interface...

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


More information about the flang-commits mailing list