summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/varargs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve diagnostic checking for va_start to also warn on other instances of ↵Aaron Ballman2016-04-241-7/+0
| | | | | | | | undefined behavior, such as a parameter declared with the register keyword in C, or a parameter of a type that undergoes default argument promotion. This helps cover some more of the CERT secure coding rule EXP58-CPP. Pass an object of the correct type to va_start (https://www.securecoding.cert.org/confluence/display/cplusplus/EXP58-CPP.+Pass+an+object+of+the+correct+type+to+va_start). llvm-svn: 267338
* Warn on va_start() when called with a reference parameter.Nico Weber2013-05-241-0/+7
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1905.pdf 18.7p3 explicitly calls this (and some other things) out as undefined. Also move 2 other existing warnings behind the new -Wvarargs flag. llvm-svn: 182694
OpenPOWER on IntegriCloud