]> granicus.if.org Git - clang/commit
When calling a non variadic format function(vprintf, vscanf, NSLogv, …), warn if...
authorJean-Daniel Dupas <devlists@shadowlab.org>
Tue, 21 Feb 2012 20:00:53 +0000 (20:00 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Tue, 21 Feb 2012 20:00:53 +0000 (20:00 +0000)
commitf57c413e444b441fa75ae8911d183c19b53bdd56
tree8242e39f4ac230f2c3348e89f45d48354439df33
parentf4b7de1cef3007cc0479775638198287384d9af1
When calling a non variadic format function(vprintf, vscanf, NSLogv, …), warn if the format string argument is a parameter that is not itself declared as a format string with compatible format.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151080 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/format-strings.c
test/SemaCXX/format-strings.cpp
test/SemaObjC/format-strings-objc.m