]> granicus.if.org Git - clang/commit
Tweak the interface for analyzing the CF conventions for a name
authorJohn McCall <rjmccall@apple.com>
Sat, 1 Oct 2011 00:48:56 +0000 (00:48 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 1 Oct 2011 00:48:56 +0000 (00:48 +0000)
commit7df2ff45f101c87398329d0ea23c1377328dca40
tree445d7ff7f200040414bfbd39e09c12c36e68a5c5
parentc4cc403d1e7b020d6d5deb968e4686301a8c83ac
Tweak the interface for analyzing the CF conventions for a name
to take a FunctionDecl* instead of an llvm::StringRef.  Eventually
we might push more logic in there, like using slightly different
conventions for C++ methods.

Also, fix a bug where 'copy' and 'create' were being caught in
non-camel-cased strings.  We want copyFoo and CopyFoo and XCopy
but not Xcopy or xcopy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140911 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/DomainSpecific/CocoaConventions.h
lib/Analysis/CocoaConventions.cpp
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
test/Analysis/retain-release.mm