]> granicus.if.org Git - clang/commit
Warn about non-standard format strings (pr12017)
authorHans Wennborg <hans@hanshq.net>
Wed, 22 Feb 2012 10:17:01 +0000 (10:17 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 22 Feb 2012 10:17:01 +0000 (10:17 +0000)
commit76517426dc8bf7734c07eefc35171a6bfdba1a2b
treec7d54d3b390503dc30c37057385243abccec3592
parent341785ec52f87c0803ba52dc88faac4e136f8593
Warn about non-standard format strings (pr12017)

This adds the -Wformat-non-standard flag (off by default,
enabled by -pedantic), which warns about non-standard
things in format strings (such as the 'q' length modifier,
the 'S' conversion specifier, etc.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151154 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-non-standard.c [new file with mode: 0644]
test/Sema/format-strings.c
test/SemaCXX/format-strings.cpp