Support the 'a' length modifier in scanf format strings as a C90
authorHans Wennborg <hans@hanshq.net>
Thu, 15 Dec 2011 10:25:47 +0000 (10:25 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 15 Dec 2011 10:25:47 +0000 (10:25 +0000)
commit23926bd2d78ca1898e8565039b6de06d329eeb9e
tree1f918189aff3cb758c6e432c89bf997e392a5f53
parentadba86d63c1d5c93cc559291499d63dbc19baeb5
Support the 'a' length modifier in scanf format strings as a C90
extension.

This fixes gcc.dg/format/c90-scanf-3.c and ext-4.c (test for excess
errors).

llvm-svn: 146649
clang/include/clang/Analysis/Analyses/FormatString.h
clang/lib/Analysis/FormatString.cpp
clang/lib/Analysis/FormatStringParsing.h
clang/lib/Analysis/PrintfFormatString.cpp
clang/lib/Analysis/ScanfFormatString.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/format-strings-c90.c [new file with mode: 0644]
clang/test/Sema/format-strings-scanf.c