clang-1/test/Analysis
Zhongxing Xu ed8afacb81 Refactor the AnalysisConsumer to analyze functions after the whole
translation unit is parsed. This enables us to inline some calls when still
analyzing one function at a time.

Actions are classified into Function, CXXMethod, ObjCMethod, 
ObjCImplementation.

This does not hurt performance much. The analysis time for sqlite3.c:

before:
real    17m52.440s
user    17m49.460s
sys    0m2.010s

after:
real    18m0.500s
user    17m56.900s
sys    0m2.330s

DisplayProgress option is broken now. -inine-call action is removed. It
will be reenabled in another form, perhaps as an indenpendant option.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102689 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-30 04:14:20 +00:00
..
CFDateGC.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
CFNumber.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
CFRetainRelease_NSAssertionHandler.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
CGColorSpace.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
CheckNSError.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
MissingDealloc.m Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'. 2010-02-05 01:59:21 +00:00
NSPanel.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
NSString.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
NSWindow.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
NoReturn.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
ObjCProperties.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
ObjCRetSigs.m Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'. 2010-02-05 01:57:44 +00:00
PR2599.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
PR2978.m Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'. 2010-02-05 01:59:21 +00:00
PR3991.m Improve diagnostics on incomplete implementation 2010-03-27 19:02:17 +00:00
array-struct.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
blocks.m Add test case showing that a recursive block that captures a block pointer that 2010-02-16 16:55:10 +00:00
casts.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
casts.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
cfref_PR2519.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
cfref_rdar6080742.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
complex.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
concrete-address.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
conditional-op-missing-lhs.c Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'. 2010-02-05 01:52:40 +00:00
dead-stores.c Tweak dead stores checker to not emit a warning when initialization 2010-03-18 01:22:39 +00:00
dead-stores.cpp Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
dead-stores.m Dead emit dead store warnings when assigning nil to an ObjC object 2010-02-23 21:19:33 +00:00
delegates.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
elementtype.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
exercise-ps.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
fields.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
func.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
inline.c Refactor the AnalysisConsumer to analyze functions after the whole 2010-04-30 04:14:20 +00:00
inline2.c Refactor the AnalysisConsumer to analyze functions after the whole 2010-04-30 04:14:20 +00:00
inline3.c Refactor the AnalysisConsumer to analyze functions after the whole 2010-04-30 04:14:20 +00:00
inline4.c Refactor the AnalysisConsumer to analyze functions after the whole 2010-04-30 04:14:20 +00:00
malloc.c Add use-after-free check to MallocChecker. 2010-03-10 04:58:55 +00:00
method-call.cpp Add test cases. 2010-04-20 05:48:57 +00:00
misc-ps-64.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-basic-store.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-eager-assume.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-flat-store.c Add support for binding and retrieving VarRegions in flat store. 2010-02-08 05:40:07 +00:00
misc-ps-ranges.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-region-store-i386.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-region-store-x86_64.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-region-store.cpp Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps-region-store.m Static analyzer: Don't crash when casting a symbolic region address to a float. Fixes PR 6854. 2010-04-16 17:54:33 +00:00
misc-ps-region-store.mm Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
misc-ps.m Fix CFG crasher involving statement expressions reported in PR 6938. 2010-04-29 01:10:26 +00:00
new.cpp The second check point in the old test case was invalid. 2010-04-21 02:22:25 +00:00
nil-receiver-undefined-larger-than-voidptr-ret.m Refactor the AnalysisConsumer to analyze functions after the whole 2010-04-30 04:14:20 +00:00
no-exit-cfg.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
no-outofbounds.c Use the element type to compute the array size when the base region is a VarRegion. 2010-04-01 08:20:27 +00:00
null-deref-ps-region.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
null-deref-ps.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
outofbound.c Use the element type to compute the array size when the base region is a VarRegion. 2010-04-01 08:20:27 +00:00
override-werror.c Improve diagnostics when we fail to convert from a source type to a 2010-04-09 00:35:39 +00:00
plist-output.m Tweak null dereference diagnostics to give clearer diagnostics when 2010-03-23 01:11:38 +00:00
pr4209.m Improve diagnostics on incomplete implementation 2010-03-27 19:02:17 +00:00
pr_2542_rdar_6793404.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
pr_4164.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
ptr-arith.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6442306-1.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6540084.m Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'. 2010-02-05 01:52:40 +00:00
rdar-6541136-region.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6541136.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6562655.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6582778-basic-store.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-6600344-nil-receiver-undefined-struct-ret.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
rdar-7168531.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
refcnt_naming.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
reference.cpp Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
region-1.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
retain-release-basic-store.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
retain-release-gc-only.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
retain-release-region-store.m Fix a bug (PR 6699) in RegionStore::RemoveDeadBindings() where 2010-04-01 00:15:55 +00:00
retain-release.m Fix NoReturnFunctionChecker to properly look at a function's type 2010-03-26 22:57:13 +00:00
security-syntax-checks-no-emit.c Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'. 2010-02-05 01:50:36 +00:00
security-syntax-checks.m Rename -cc1 option '-warn-security-syntactic' to '-analyzer-check-security-syntactic'. 2010-02-05 01:50:36 +00:00
sizeofpointer.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
stack-addr-ps.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
uninit-msg-expr.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
uninit-ps-rdar6145427.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
uninit-vals-ps-region.m Improve the diagnostics for the UndefinedAssignmentChecker when an 2010-03-22 22:16:26 +00:00
uninit-vals-ps.c Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
uninit-vals.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
uninit-vals.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
unions-region.m Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'. 2010-02-05 02:06:54 +00:00
unix-fns.c Add static analyzer check for calls to 'pthread_once()' where the control-flow has 2010-04-08 19:53:31 +00:00
unused-ivars.m Enhance the unused ivar checker to not consider an ivar to be accidentally unused 2010-02-25 03:26:55 +00:00