[clang] [clang] __builtin_os_log_format has incorrect PrintfFormat Attribute argument (PR #178320)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 29 04:55:19 PST 2026
================
@@ -0,0 +1,33 @@
+// RUN: %clang_cc1 -std=c++20 -Wno-all -Wformat \
+// RUN: -verify=expected-format %s
+// RUN: %clang_cc1 -std=c++20 -Wno-all -Wunsafe-buffer-usage -Wunsafe-buffer-usage-in-format-attr-call \
+// RUN: -verify %s
----------------
AaronBallman wrote:
I think we can drop the `-std=c++20` because there's nothing C++20-specific in the test. Also, we don't usually do `-Wno-all`, I think that can be dropped (though you may need to change the second `-verify` to include the format diagnostics, you can do that with `-verify=expected,expected-format`).
https://github.com/llvm/llvm-project/pull/178320
More information about the cfe-commits
mailing list