]> granicus.if.org Git - clang/commit
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)
commitcdbe1e0d85d7d32452dd1c52758d7bfaa1c0663b
treeff971142e79d16f5b8d2fc7b78d5f227e1581373
parentde03c15ad92b44a4be11507ca2501bb9dd014dce
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172762 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/PrintfFormatString.cpp
test/FixIt/format.m
test/Index/fix-its.c
test/Misc/caret-diags-macros.c
test/Sema/format-strings-fixit.c