Debian Codegraph @

clang/test/Index/fix-its.c

raw
1 // RUN: c-index-test -test-load-source all -fspell-checking %s 2> %t
2 // RUN: FileCheck %s < %t
3 #define MACRO(X) X
4
5 int printf(const char *restrict, ...);
6
7 void f2() {
8 unsigned long index;
9 // CHECK: warning: format specifies type 'int' but the argument has type 'unsigned long'
10 // CHECK: FIX-IT: Replace [11:17 - 11:19] with "%lu"
11 MACRO(printf("%d", index));
12 }