]> granicus.if.org Git - clang/commit
[analyzer] Add an AST checker that checks for a common pitfall when
authorAnna Zaks <ganna@apple.com>
Thu, 26 Jan 2012 01:05:43 +0000 (01:05 +0000)
committerAnna Zaks <ganna@apple.com>
Thu, 26 Jan 2012 01:05:43 +0000 (01:05 +0000)
commitcbd273387a61409f179fcfe8460a8733fcf8f872
tree897b46a80fe7141846d5dbbce3db461508e9df52
parente7cff2c00c3d74e38984a4db5c48d7e303d3ab8e
[analyzer] Add an AST checker that checks for a common pitfall when
using CFArrayCreate & family.

Specifically, CFArrayCreate's input should be:
'A C array of the pointer-sized values to be in the new array.'

(radar://10717339)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp [new file with mode: 0644]
test/Analysis/CFContainers.mm [new file with mode: 0644]