]> granicus.if.org Git - clang/commit
Previously, the printf warnings would say your arguments type was 'int' when it was...
authorTed Kremenek <kremenek@apple.com>
Thu, 21 Oct 2010 04:00:58 +0000 (04:00 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 21 Oct 2010 04:00:58 +0000 (04:00 +0000)
commit4d8ae4d57ed18d60da4d3786fb740607aa7c3688
tree417e4e11d6a2f8b488e22f6b86d8fe1b6f654864
parent5cca53e5beeb6ec14e03327f0fd4e5ff318834d6
Previously, the printf warnings would say your arguments type was 'int' when it was really a 'char'
or a 'short'. This fixes that and allows the hints to suggest 'h' modifiers for small ints.

Patch by Justin Bogner!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PrintfFormatString.cpp
lib/Sema/SemaChecking.cpp
test/Sema/format-strings.c