- Sep 07, 2012
-
-
Ted Kremenek authored
Apparently the output of this test is not deterministic. Needs investigation. llvm-svn: 163377
-
Ted Kremenek authored
of the analyzer, as the RetainReleaseChecker has many fine-grain path diagnostic events that were not being checked. This uncovered an inconsistency between the path diagnostics between Objective-C and Objective-C++ code in ConditionBRVisitor that was fixed in a recent patch. llvm-svn: 163373
-
Ted Kremenek authored
return a CF object at all. Fixes <rdar://problem/9566345> llvm-svn: 163362
-
Ted Kremenek authored
via function/method with [CF,NS]_RETURNS_NOT_RETAINED. Fixes <rdar://problem/11379000>. llvm-svn: 163355
-
- Aug 31, 2012
-
-
Anna Zaks authored
There are two tests regressions that come from the fact that the Retain Count checker does not cancel out inlining of ObjC methods. llvm-svn: 162950
-
- Aug 30, 2012
-
-
Ted Kremenek authored
llvm-svn: 162934
-
- Aug 21, 2012
-
-
Jordan Rose authored
Under GC, a release message is ignored, so "release and stop tracking" just becomes "stop tracking". But CFRelease is still honored. This is the main difference between ns_consumed and cf_consumed. llvm-svn: 162234
-
- Aug 20, 2012
-
-
Jordan Rose authored
This is used to handle functions and methods that consume an argument (annotated with the ns_consumed or cf_consumed attribute), but then the argument's retain count may be further modified in a callback. We want to warn about over-releasing, but we can't really track the object afterwards. llvm-svn: 162221
-
- Aug 07, 2012
-
-
Jordan Rose authored
This is an additional test for r161349 (ignoring 10.8's annotations for NSMakeCollectable). llvm-svn: 161380
-
- Jun 22, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 159001
-
- Jun 01, 2012
-
-
Ted Kremenek authored
llvm-svn: 157833
-
- May 27, 2012
-
-
Fariborz Jahanian authored
to the declaration in this patch. // rdar://10893232 llvm-svn: 157537
-
- May 12, 2012
-
-
Jordy Rose authored
llvm-svn: 156699
-
- May 09, 2012
-
-
Anna Zaks authored
llvm-svn: 156481
-
- May 08, 2012
-
-
Ted Kremenek authored
Teach the static analyzer that NSLog() and friends do not hold on to object references (thus extending their lifetime). llvm-svn: 156346
-
- May 05, 2012
-
-
Anna Zaks authored
Fixes radar://10973977. llvm-svn: 156215
-
- May 02, 2012
-
-
Anna Zaks authored
warning. llvm-svn: 155966
-
- Apr 26, 2012
-
-
Ted Kremenek authored
Teach RetainCountChecker that it doesn't quite understand pthread_setspecific and it should just give up when it sees it. Fixes <rdar://problem/11282706>. llvm-svn: 155613
-
- Apr 06, 2012
-
-
Patrick Beard authored
Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698> llvm-svn: 154187
-
- Mar 27, 2012
-
-
Ted Kremenek authored
assigned to a struct. This is fallout from inlining results, which expose far more patterns where people stuff CF objects into structs and pass them around (and we can reason about it). The problem is that we don't have a general way to detect when values have escaped, so as an intermediate step we need to eagerly prune out such tracking. Fixes <rdar://problem/11104566>. llvm-svn: 153489
-
- Mar 10, 2012
-
-
Ted Kremenek authored
Teach RetainCountChecker about mixing method families with explicit annotations. Fixes <rdar://problem/10824732>. llvm-svn: 152448
-
- Mar 06, 2012
-
-
Ted Kremenek authored
llvm-svn: 152139
-
- Feb 28, 2012
-
-
Anna Zaks authored
message. llvm-svn: 151657
-
- Feb 18, 2012
-
-
- Jan 04, 2012
-
-
Ted Kremenek authored
llvm-svn: 147506
-
- Oct 06, 2011
-
-
Ted Kremenek authored
Fix major regression in RetainCountChecker. DefaultSummaries were not being used when they were meant to be. Fixes <rdar://problem/10241614>. llvm-svn: 141250
-
- Sep 21, 2011
-
-
Anna Zaks authored
[analyzer] Fix a bug where PathDiagnosticLocation did not generate a valid range and add asserts to check validity of locations early on. Ignore invalid ranges in PathDiagnosticPiece (they could be added by checker writers). Addresses radar://10124836 and radar://radar10102244. llvm-svn: 140218
-
- Sep 02, 2011
-
-
Jordy Rose authored
[analyzer] Move the knowledge of whether or not GC is enabled for the current analysis from CFRefCount to ExprEngine. Remove TransferFuncs from ExprEngine and AnalysisConsumer. Demote RetainReleaseChecker to a regular checker, and give it the name osx.cocoa.RetainCount (class name change coming shortly). Update tests accordingly. llvm-svn: 138998
-
- Jul 29, 2011
-
-
Ted Kremenek authored
Really remove FlatStoreManager and BasicStoreManager, this time from the driver. Also remove associated tests. Sorry for the messy commits; this is the result of a botched Git merge. llvm-svn: 136422
-
Ted Kremenek authored
[analyzer] Overhaul how the static analyzer expects CFGs by forcing CFGs to be linearized only when used by the static analyzer. This required a rewrite of LiveVariables, and exposed a ton of subtle bugs. The motivation of this large change is to drastically simplify the logic in ExprEngine going forward. Some fallout is that the output of some BugReporterVisitors is not as accurate as before; those will need to be fixed over time. There is also some possible performance regression as RemoveDeadBindings will be called frequently; this can also be improved over time. llvm-svn: 136419
-
- Jul 22, 2011
-
-
John McCall authored
methods, including indirectly overridden methods like those declared in protocols and categories. There are mismatches that we would like to diagnose but aren't yet, but this is fine for now. I looked at approaches that avoided doing this lookup unless we needed it, but the infer-related-result-type checks were doing it anyway, so I left it with the same fast-path check for no previous declartions of that selector. llvm-svn: 135743
-
- Jul 16, 2011
-
-
Ted Kremenek authored
[analyzer] Per discussions with the Cocoa team, extend CF naming conventions to extend to camel case functions instead of just title case functions. Fixes <rdar://problem/9732321>. llvm-svn: 135350
-
Jordy Rose authored
llvm-svn: 135317
-
- Jul 06, 2011
-
-
Douglas Gregor authored
obey the objc_method_family attribute when provided. Fixes <rdar://problem/9726279>. llvm-svn: 134493
-
- Jun 13, 2011
-
-
Douglas Gregor authored
reason to allow the user to control these semantics through a flag. llvm-svn: 132919
-
- May 25, 2011
-
-
Ted Kremenek authored
Enhance retain/release checker to flag warnings when functions returning CG types do not follow the Core Foundation naming conventions. llvm-svn: 132048
-
- May 02, 2011
-
-
Ted Kremenek authored
Augment retain/release checker to not warn about tracked objects passed as arguments to C++ constructors. This is a stop-gap measure for Objective-C++ code that uses smart pointers to manage reference counts. llvm-svn: 130711
-
- Apr 30, 2011
-
-
Ted Kremenek authored
Adjust test/Analysis/retain-release.m to also test the retain/release checker in Objective-C++ mode. llvm-svn: 130559
-
- Apr 06, 2011
-
-
John McCall authored
be sure to consume the argument index that actually had the attribute rather than always the first. rdar://problem/9234108 llvm-svn: 128998
-
- Mar 24, 2011
-
-
Ted Kremenek authored
llvm-svn: 128187
-