[clang] [llvm] [Sema] Implement support for -Wformat-signedness (PR #74440)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 09:14:39 PST 2023
================
@@ -0,0 +1,107 @@
+// RUN: %clang_cc1 -std=c11 -fsyntax-only -verify -Wformat -Wformat-signedness %s
+
+int printf(const char *restrict format, ...);
+int scanf(const char * restrict, ...);
----------------
apple-fcloutier wrote:
Please add tests with enum values:
```c
#include <limits.h>
enum foo {
minus_one = -1,
int_val = INT_MAX,
unsigned_val = (unsigned)INT_MIN
};
```
https://github.com/llvm/llvm-project/pull/74440
More information about the llvm-commits
mailing list