]> granicus.if.org Git - clang/commit
[analyzer] Teach the analyzer about implicit initialization of statics
authorAnna Zaks <ganna@apple.com>
Mon, 17 Sep 2012 19:13:56 +0000 (19:13 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 17 Sep 2012 19:13:56 +0000 (19:13 +0000)
commit5fc1d0c4532c55cc47ba6628f296bf5b86d2eaf0
tree1b5bccfa211ebe104df8f5bc7151e2ca29ab9458
parent1fac58a2ff3c56a18765b2c7395ed91ac7b80544
[analyzer] Teach the analyzer about implicit initialization of statics
in ObjCMethods.

Extend FunctionTextRegion to represent ObjC methods as well as
functions. Note, it is not clear what type ObjCMethod region should
return. Since the type of the FunctionText region is not currently used,
defer solving this issue.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164046 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
lib/StaticAnalyzer/Checkers/CStringChecker.cpp
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
lib/StaticAnalyzer/Core/MemRegion.cpp
lib/StaticAnalyzer/Core/SVals.cpp
test/Analysis/static_local.m [new file with mode: 0644]