llvm-project/clang/test/Analysis/inlining
Jordan Rose ec44ac6a59 [analyzer] New option to not suppress null return paths if an argument is null.
Our one basic suppression heuristic is to assume that functions do not
usually return NULL. However, when one of the arguments is NULL it is
suddenly much more likely that NULL is a valid return value. In this case,
we don't suppress the report here, but we do attach /another/ visitor to
go find out if this NULL argument also comes from an inlined function's
error path.

This new behavior, controlled by the 'avoid-suppressing-null-argument-paths'
analyzer-config option, is turned off by default. Turning it on produced
two false positives and no new true positives when running over LLVM/Clang.

This is one of the possible refinements to our suppression heuristics.
<rdar://problem/12350829>

llvm-svn: 166941
2012-10-29 17:31:59 +00:00
..
DynDispatchBifurcate.m [analyzer] Commit a test case for r164579. 2012-09-26 18:55:09 +00:00
InlineObjCClassMethod.m [analyzer] Address Jordan's comments for r161822, r161683. 2012-08-14 18:35:06 +00:00
InlineObjCInstanceMethod.h [analyzer] ObjC Inlining: add tests for ivars and properties. 2012-08-10 18:56:01 +00:00
InlineObjCInstanceMethod.m Revert "InlineObjCInstanceMethod.m: Remove lines introduced in r165079." 2012-10-03 16:00:32 +00:00
ObjCDynTypePopagation.m [analyzer] Track if a region can be a subclass in the dynamic type info. 2012-08-10 18:55:58 +00:00
ObjCImproperDynamictallyDetectableCast.m [analyzer] Track if a region can be a subclass in the dynamic type info. 2012-08-10 18:55:58 +00:00
RetainCountExamples.m [analyzer] Stop tracking symbols based on a retain count summary of 2012-08-29 23:23:43 +00:00
assume-super-init-does-not-return-nil.m [analyzer] Fixup for r162935 as per Jordan's review. 2012-08-30 22:42:41 +00:00
dyn-dispatch-bifurcate.cpp [analyzer] Re-add reinterpret_cast virtual call test case from r163644. 2012-09-12 21:50:56 +00:00
eager-reclamation-path-notes.c [analyzer] Use the CallEnter node to get a value for tracked null arguments. 2012-10-29 17:31:53 +00:00
false-positive-suppression.c [analyzer] New option to not suppress null return paths if an argument is null. 2012-10-29 17:31:59 +00:00
path-notes.c TrackConstraintBRVisitor and ConditionBRVisitor can emit similar 2012-10-25 22:07:10 +00:00
path-notes.m [analyzer] Suppress bugs whose paths go through the return of a null pointer. 2012-09-22 01:25:06 +00:00
retain-count-self-init.m [analyzer] Make analyzer less aggressive when dealing with [self init]. 2012-08-24 00:06:12 +00:00
stl.cpp Adjust some analyzer tests to place widely shared inputs inside of an 2012-09-12 01:11:10 +00:00
test-always-inline-size-option.c [analyzer] Do not count calls to small functions when computing stack 2012-09-10 23:35:11 +00:00
test_objc_inlining_option.m Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00