]> granicus.if.org Git - clang/commit
Format strings: the correct conversion for 'char' is %c, not %d or %hhd.
authorJordan Rose <jordan_rose@apple.com>
Wed, 5 Dec 2012 18:44:37 +0000 (18:44 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 5 Dec 2012 18:44:37 +0000 (18:44 +0000)
commitff7be48165548c9c01492010609d166973607068
tree22eb181aecc7f65af5ae6f6a339976ed22d86241
parentdfbb3197de8407a4209f328e4de1ae73bac70b8b
Format strings: the correct conversion for 'char' is %c, not %d or %hhd.

We tried to account for 'uint8_t' by saying that /typedefs/ of 'char'
should be corrected as %hhd rather than %c, but the condition was wrong.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PrintfFormatString.cpp
test/FixIt/format.m