summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/format-strings-c90.c
Commit message (Collapse)AuthorAgeFilesLines
* -Wformat-non-iso: warn about positional arguments (pr12017)Hans Wennborg2012-03-091-6/+6
| | | | | | | | | This renames the -Wformat-non-standard flag to -Wformat-non-iso, rewords the current warnings a bit (pointing out that a format string is not supported by ISO C rather than being "non standard"), and adds a warning about positional arguments. llvm-svn: 152403
* Warn about non-standard format strings (pr12017)Hans Wennborg2012-02-221-6/+9
| | | | | | | | | This adds the -Wformat-non-standard flag (off by default, enabled by -pedantic), which warns about non-standard things in format strings (such as the 'q' length modifier, the 'S' conversion specifier, etc.) llvm-svn: 151154
* Tighten format string diagnostic and make it a bit clearer (and a bit closer ↵Ted Kremenek2012-01-201-3/+3
| | | | | | to GCC's). llvm-svn: 148579
* scanf: parse the 'm' length modifier, and check that the right argumentsHans Wennborg2012-01-121-1/+6
| | | | | | are used with that and the 'a' length modifier. llvm-svn: 148029
* scanf analysis: the 'a' length modifier is valid with a scanlistHans Wennborg2012-01-121-0/+1
| | | | | | | Before r148025 we (accidentally) didn't check whether a length modifier is appropriate for a scanlist, but now we do. llvm-svn: 148026
* Support the 'a' length modifier in scanf format strings as a C90Hans Wennborg2011-12-151-0/+21
extension. This fixes gcc.dg/format/c90-scanf-3.c and ext-4.c (test for excess errors). llvm-svn: 146649
OpenPOWER on IntegriCloud