summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-06-21 01:08:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-06-21 01:08:35 +0000
commitc7b0bdffe75c05aeb4a0689086d899c5527c3c7b (patch)
tree9abab9b93791ace8e96b7e5f4c48dce1668ea7ec /clang/lib/Lex
parent15b4cafd2ca3459bf33f909f1aa65b9eb8caad74 (diff)
downloadbcm5719-llvm-c7b0bdffe75c05aeb4a0689086d899c5527c3c7b.tar.gz
bcm5719-llvm-c7b0bdffe75c05aeb4a0689086d899c5527c3c7b.zip
If an object (such as a std::string) with an appropriate c_str() member function
is passed to a variadic function in a position where a format string indicates that c_str()'s return type is desired, provide a note suggesting that the user may have intended to call the c_str() member. Factor the non-POD-vararg checking out of DefaultVariadicArgumentPromotion and move it to SemaChecking in order to facilitate this. Factor the call checking out of function call checking and block call checking, and extend it to cover constructor calls too. Patch by Sam Panzer! llvm-svn: 158887
Diffstat (limited to 'clang/lib/Lex')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud