]> granicus.if.org Git - clang/commit
[clang] Fix handling of "%zd" format specifier
authorAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 14 Jul 2017 22:57:00 +0000 (22:57 +0000)
committerAlexander Shaposhnikov <shal1t712@gmail.com>
Fri, 14 Jul 2017 22:57:00 +0000 (22:57 +0000)
commit01102f19a95fc251a8d124c3831636993fef64b9
tree26ae014ee95927bbb6604f2c171c2b6470f82469
parent98062020fd0aaf8513b53796b9dd63729b0c5d4f
[clang] Fix handling of "%zd" format specifier

This diff addresses FIXME in lib/Analysis/PrintfFormatString.cpp
and makes PrintfSpecifier::getArgType return the correct type.
In particular, this change enables Clang to emit a warning on
incorrect using of "%zd"/"%zn" format specifiers.

Differential revision: https://reviews.llvm.org/D35427

Test plan: make check-all

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