]> granicus.if.org Git - clang/commit
Make conversion specifier warning refer to typedef if possible.
authorHans Wennborg <hans@hanshq.net>
Fri, 2 Dec 2011 19:22:15 +0000 (19:22 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 2 Dec 2011 19:22:15 +0000 (19:22 +0000)
commit5fdc1b993dcb01e8a994fdacfc4eb089832c82e3
treea078ac926e2c72f691155aa3045a6876d3159714
parent07165b9e3b78ed76a7db561f392335e4a54c9e51
Make conversion specifier warning refer to typedef if possible.

For example, the warning for printf("%zu", 42.0);
changes from "conversion specifies type 'unsigned long'" to "conversion
specifies type 'size_t' (aka 'unsigned long')"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145697 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h
lib/Analysis/FormatString.cpp
lib/Analysis/PrintfFormatString.cpp
lib/Sema/SemaChecking.cpp
test/Sema/format-strings-int-typedefs.c [new file with mode: 0644]