]> granicus.if.org Git - clang/commit
Fix off-by-one bug in diagnostic prose of ObjCContainersASTChecker.
authorTed Kremenek <kremenek@apple.com>
Fri, 7 Sep 2012 07:13:08 +0000 (07:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 7 Sep 2012 07:13:08 +0000 (07:13 +0000)
commit2ab012a6de2b2769ec7ad99c4b61788cc5175d17
tree3ea8c9042d026285dd87a5a72221f2dd7d374a9d
parent62bde3e0a0699a72f9dbd1045dc4a3c554a46dd3
Fix off-by-one bug in diagnostic prose of ObjCContainersASTChecker.
While the check itself should count 0-based for the parameter index,
the diagnostic should be 1-based (first, second, third, not start at 0).

Fixes <rdar://problem/12249569>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163375 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/ObjCContainersASTChecker.cpp
test/Analysis/CFContainers.mm