summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-format.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for analyzing FreeBSD kernel printf extensions.Dimitry Andric2015-02-191-0/+7
| | | | | | | | | | | | This adds a new __freebsd_kprintf__ format string type, which enables checking when used in __attribute__((format(...))) attributes. It can check the FreeBSD kernel specific %b, %D, %r and %y specifiers, using existing diagnostic messages. Also adds test cases for all these specifiers. Differential Revision: http://reviews.llvm.org/D7154 llvm-svn: 229921
* Refactor some attributes to use checkFunctionOrMethodArgumentIndex instead ↵Aaron Ballman2013-07-301-0/+2
| | | | | | of using custom logic. No functional changes intended. llvm-svn: 187398
* Whenever we complain about a failed initialization of a function orDouglas Gregor2010-04-221-1/+1
| | | | | | | | | | | | | | | | | method parameter, provide a note pointing at the parameter itself so the user does not have to manually look for the function/method being called and match up parameters to arguments. For example, we now get: t.c:4:5: warning: incompatible pointer types passing 'long *' to parameter of type 'int *' [-pedantic] f(long_ptr); ^~~~~~~~ t.c:1:13: note: passing argument to parameter 'x' here void f(int *x); ^ llvm-svn: 102038
* Ignore a more comprehensive set of gcc-special format attributes.Duncan Sands2010-03-231-0/+6
| | | | llvm-svn: 99277
* (re)implement PR6542, accepting and discarding the __gcc_tdiag__Chris Lattner2010-03-221-0/+4
| | | | | | format attribute specifier. llvm-svn: 99213
* merge some tests.Chris Lattner2010-03-221-0/+36
| | | | llvm-svn: 99212
* rename testChris Lattner2010-03-221-0/+34
llvm-svn: 99211
OpenPOWER on IntegriCloud