diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-12 22:39:30 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-12 22:39:30 +0000 |
commit | 813985b073d19851fd18d1ee9498907e43b56930 (patch) | |
tree | 06bc78ac33aaf7051d8723c667341658e9536892 /clang/test/Sema/format-strings.c | |
parent | 4b84153da2b58f5494a72fd575d470fb89f22c8e (diff) | |
download | bcm5719-llvm-813985b073d19851fd18d1ee9498907e43b56930.tar.gz bcm5719-llvm-813985b073d19851fd18d1ee9498907e43b56930.zip |
Add a comment to test to clarify the intention here
Comment is taken from the commit message of r151080, by Jean-Daniel Dupas
llvm-svn: 172332
Diffstat (limited to 'clang/test/Sema/format-strings.c')
-rw-r--r-- | clang/test/Sema/format-strings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 8fb1218b99a..ba127214897 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -58,6 +58,9 @@ def" printf("%*d", (unsigned) 1, 1); // no-warning } +// When calling a non-variadic format function (vprintf, vscanf, NSLogv, ...), +// warn only if the format string argument is a parameter that is not itself +// declared as a format string with compatible format. __attribute__((__format__ (__printf__, 2, 4))) void check_string_literal2( FILE* fp, const char* s, char *buf, ... ) { char * b; |