Format strings: don't ever convert %+d to %lu.
authorJordan Rose <jordan_rose@apple.com>
Thu, 17 Jan 2013 22:34:10 +0000 (22:34 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 17 Jan 2013 22:34:10 +0000 (22:34 +0000)
commit1eb342920b33cda278a913435daad6e1dece6396
tree83a69f2afc9801984af74d5159d0f7502b18c4af
parent0015f0987792014c9f9daf595c8f4594cb465213
Format strings: don't ever convert %+d to %lu.

Presumably, if the printf format has the sign explicitly requested, the user
wants to treat the data as signed.

This is a fix-up for r172739, and also includes several test changes that
didn't make it into that commit.

llvm-svn: 172762
clang/lib/Analysis/PrintfFormatString.cpp
clang/test/FixIt/format.m
clang/test/Index/fix-its.c
clang/test/Misc/caret-diags-macros.c
clang/test/Sema/format-strings-fixit.c