]> granicus.if.org Git - clang/commit
fix format specifier fixit for printf("%ld", "foo");
authorHans Wennborg <hans@hanshq.net>
Fri, 9 Dec 2011 10:51:29 +0000 (10:51 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 9 Dec 2011 10:51:29 +0000 (10:51 +0000)
commit117348caf0a8f91782e9e32e32a8689576f394d7
treea2701bd614d6de247c3c2bd93e416c7cf97319c6
parent4b45c111f0ac43441c475aca4ecc1d62499e0cb8
fix format specifier fixit for printf("%ld", "foo");

It should reset the length modifier (unless it's a wchar_t string).

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