]> granicus.if.org Git - clang/commit
Patch by Cristian Draghici:
authorTed Kremenek <kremenek@apple.com>
Thu, 11 Feb 2010 09:27:41 +0000 (09:27 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 11 Feb 2010 09:27:41 +0000 (09:27 +0000)
commit5c41ee8c49995fb4fd76d686b239c15cbab261ea
treeb8fc243b142bb4fdd68ee1783c2aa8cd4feb9cdc
parent824d7ea07a4e9208925daa6ae9289fb2b39bce9f
Patch by Cristian Draghici:

Enhance the printf format string checking when using the format
specifier flags ' ', '0', '+' with the 'p' or 's' conversions (since
they are nonsensical and undefined).  This is similar to GCC's
checking.

Also warning when a precision is used with the 'p' conversin
specifier, since it has no meaning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95869 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/PrintfFormatString.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/format-strings.c