]> granicus.if.org Git - clang/commit
Add most of the boilerplate support for scanf format string checking. This includes
authorTed Kremenek <kremenek@apple.com>
Fri, 16 Jul 2010 02:11:22 +0000 (02:11 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 16 Jul 2010 02:11:22 +0000 (02:11 +0000)
commit826a3457f737f1fc45a22954fd1bfde38160c165
tree1eef44acc8d837ec3ac4505687d22a9b90baa8d6
parentbee05c1206dcd525e0a1f066d166ad3e972a500e
Add most of the boilerplate support for scanf format string checking.  This includes
handling the parsing of scanf format strings and hooking the checking into Sema.
Most of this checking logic piggybacks on what was already there for checking printf format
strings, but the checking logic has been refactored to support both.

What is left to be done is to support argument type checking in format strings and of course
fix the usual tail of bugs that will follow.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108500 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/FormatString.h [new file with mode: 0644]
include/clang/Analysis/Analyses/PrintfFormatString.h [deleted file]
include/clang/Basic/DiagnosticSemaKinds.td
lib/Analysis/CMakeLists.txt
lib/Analysis/FormatString.cpp [new file with mode: 0644]
lib/Analysis/PrintfFormatString.cpp
lib/Sema/Sema.h
lib/Sema/SemaChecking.cpp