]> granicus.if.org Git - clang/commit
-Wformat-non-iso: warn about positional arguments (pr12017)
authorHans Wennborg <hans@hanshq.net>
Fri, 9 Mar 2012 10:10:54 +0000 (10:10 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 9 Mar 2012 10:10:54 +0000 (10:10 +0000)
commitf85626453123f9691bcef13cff963f556e209c27
tree857081a693269f18da82d7715e2464c994c0ac42
parentef9f29804fa8932282a17b414ef0dde2ea4eec03
-Wformat-non-iso: warn about positional arguments (pr12017)

This renames the -Wformat-non-standard flag to -Wformat-non-iso,
rewords the current warnings a bit (pointing out that a format string
is not supported by ISO C rather than being "non standard"),
and adds a warning about positional arguments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152403 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Analysis/FormatString.cpp
lib/Sema/SemaChecking.cpp
test/Sema/format-strings-c90.c
test/Sema/format-strings-fixit.c
test/Sema/format-strings-non-iso.c [new file with mode: 0644]
test/Sema/format-strings-non-standard.c [deleted file]
test/SemaCXX/format-strings.cpp