summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/nil-receiver-undefined-larger-than-voidptr-ret.m
Commit message (Collapse)AuthorAgeFilesLines
* Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.Ted Kremenek2010-02-051-4/+4
| | | | llvm-svn: 95348
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-4/+4
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Replace clang-cc with clang -cc1.Zhongxing Xu2009-12-141-4/+4
| | | | llvm-svn: 91272
* Convert test case to FileCheck to test the behavior of the nil-receiver ↵Ted Kremenek2009-11-241-2/+16
| | | | | | checker when the code is targetted for either Tiger or Leopard. llvm-svn: 89810
* For the nil-receiver checker, take into account the behavioral changes that ↵Ted Kremenek2009-11-241-2/+2
| | | | | | got introduced in Mac OS X 10.5 and later, notably return values of double, float, etc., will not be garbage. Fixes <rdar://problem/6829160>. llvm-svn: 89809
* Cleanups and fixes to the nil-receiver checker, some of it fallout theTed Kremenek2009-11-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | initial transition of the nil-receiver checker to the Checker interface as done in r89745. Some important changes include: 1) We consolidate the BugType object used for nil receiver bug reports, and don't include the type of the returned value in the BugType (which would be wrong if a nil receiver bug was reported more than once) 2) Added a new (temporary) flag to CheckerContext: DoneEvauating. This is used by GRExprEngine when evaluating message expressions to not continue evaluating the message expression if this flag is set. This flag is currently set by the nil receiver checker. This is an intermediate solution to allow the nil-receiver checker to properly work as a plug-in outside of GRExprEngine. Basically, this flag indicates that the entire message expression has been evaluated, not just a precondition (which is what the nil-receiver checker does). This flag *should not* be repurposed for general use, but just to pull more things out of GRExprEngine that already in there as we devise a better interface in the Checker class. 3) Cleaned up the logic in the nil-receiver checker, making the control-flow a lot easier to read. llvm-svn: 89804
* Add clang-cc option "--analyzer-experimental-internal-checks". ThisTed Kremenek2009-11-131-2/+2
| | | | | | | option enables new "internal" checks that will eventually be turned on by default but still require broader testing. llvm-svn: 88671
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-1/+1
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Remove 'StoreManager::OldCastRegion()', TypedViewRegion (which onlyTed Kremenek2009-07-291-1/+0
| | | | | | | OldCastRegion used), and the associated command line option '-analyzer-store=old-basic-cast'. llvm-svn: 77509
* RegionStoreManager now correctly passes this test file.Ted Kremenek2009-07-101-1/+2
| | | | llvm-svn: 75295
* Switch BasicStoreManager to use the new CastRegion implementation by default,Ted Kremenek2009-07-101-1/+1
| | | | | | | | and replace the 'clang-cc' option '-analyzer-store=basic-new-cast' with '-analyzer-store=basic-old-cast'. We'll keep the old CastRegion implementation around for a little while for regression testing. llvm-svn: 75209
* Make 'BasicStoreManager' + 'NewCastRegion' testable from the command line ↵Ted Kremenek2009-07-061-1/+2
| | | | | | using '-analyzer-store=basic-new-cast'. llvm-svn: 74865
* Enhance diagnostics value tracking logic for null dereferences and ↵Ted Kremenek2009-05-131-1/+2
| | | | | | uninitialized values. llvm-svn: 71700
* GRExprEngine: Don't try to reason about the size of 'void' for the return typeTed Kremenek2009-04-091-0/+7
| | | | | | of messages sent to nil. llvm-svn: 68683
* Force triple for these tests.Daniel Dunbar2009-04-081-1/+1
| | | | llvm-svn: 68651
* Enhance analyzer reasoning about sending messages to nil. A nil receiver ↵Ted Kremenek2009-04-081-0/+11
| | | | | | returns 0 for scalars of size <= sizeof(void*). llvm-svn: 68629
* New static analyzer check by Nikita Zhuk!Ted Kremenek2009-04-081-0/+48
"The attached patch generates warnings of cases where an ObjC message is sent to a nil object and the size of return type of that message is larger than the size of void pointer. This may result in undefined return values as described in PR 2718. The patch also includes test cases." llvm-svn: 68585
OpenPOWER on IntegriCloud