summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-07-27 19:17:46 +0000
committerHans Wennborg <hans@hanshq.net>2012-07-27 19:17:46 +0000
commit08574d3559792373a2d5da6628fb55254a03549b (patch)
tree8e8c1f4e567e1d8a341770d2fff70636c5b39706 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parentc77a3b1aab7aebda612463fae7dbdb41ffe9466c (diff)
downloadbcm5719-llvm-08574d3559792373a2d5da6628fb55254a03549b.tar.gz
bcm5719-llvm-08574d3559792373a2d5da6628fb55254a03549b.zip
Make -Wformat walk the typedef chain when looking for size_t, etc.
Clang's -Wformat fix-its currently suggest using "%zu" for values of type size_t (in C99 or C++11 mode). However, for a type such as std::vector<T>::size_type, it does not notice that type is actually typedeffed to size_t, and instead suggests a format for the underlying type, such as "%lu" or "%u". This commit makes the format string fix mechanism walk the typedef chain so that it notices if the type is size_t, even if that isn't "at the top". llvm-svn: 160886
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud