]> granicus.if.org Git - clang/commit
Remove ScanfArgType and bake that logic into ArgType.
authorHans Wennborg <hans@hanshq.net>
Tue, 7 Aug 2012 08:59:46 +0000 (08:59 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 7 Aug 2012 08:59:46 +0000 (08:59 +0000)
commit58e1e54476d610d6c33ef483f216ed8a1282d35c
tree53ddc9b5444c8e4da14bfcf799a740466ed66a3d
parent5d435b6001fb853747426bfa47b0e0f49a736fe4
Remove ScanfArgType and bake that logic into ArgType.

This is useful for example for %n in printf, which expects
a pointer to int with the same logic for checking as %d
would have in scanf.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161407 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h
lib/Analysis/FormatString.cpp
lib/Analysis/PrintfFormatString.cpp
lib/Analysis/ScanfFormatString.cpp
lib/Sema/SemaChecking.cpp
test/Sema/format-strings-scanf.c