summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/system-header-simulator-objc.h
Commit message (Collapse)AuthorAgeFilesLines
* Adjust some analyzer tests to place widely shared inputs inside of anChandler Carruth2012-09-121-130/+0
| | | | | | | | | | | | | | | 'Inputs' subdirectory. The general desire has been to have essentially all of the non-test input files live in such directories, with some exceptions for obvious and common patterns like 'foo.c' using 'foo.h'. This came up because our distributed test runner couldn't find some of the headers, for example with stl.cpp. No functionality changed, just shuffling around here. llvm-svn: 163674
* [analyzer] Fixup to r158958.Anna Zaks2012-06-221-0/+6
| | | | llvm-svn: 159037
* [analyzer] Allow pointers to escape into NSPointerArray.Anna Zaks2012-06-191-0/+8
| | | | | | (Fixes radar://11691035 PR13140) llvm-svn: 158703
* [analyzer] Allow pointers escape through calls containing callback args.Anna Zaks2012-05-031-0/+2
| | | | | | | (Since we don't have a generic pointer escape callback, modify ExprEngineCallAndReturn as well as the malloc checker.) llvm-svn: 156134
* [analyzer]Malloc,RetainRelease: Allow pointer to escape via NSMapInsert.Anna Zaks2012-03-301-0/+1
| | | | | | | | Fixes a false positive (radar://11152419). The current solution of adding the info into 3 places is quite ugly. Pending a generic pointer escapes callback. llvm-svn: 153731
* [analyzer] Malloc: A pointer might escape through CFContainers APIs,Anna Zaks2012-02-291-0/+13
| | | | | | | | | | | | funopen, setvbuf. Teach the checker and the engine about these APIs to resolve malloc false positives. As I am adding more of these APIs, it is clear that all this should be factored out into a separate callback (for example, region escapes). Malloc, KeyChainAPI and RetainRelease checkers could all use it. llvm-svn: 151737
* [analyzer] Fix Malloc False Positive (PR 12100)Anna Zaks2012-02-281-11/+36
| | | | | | | | When allocated buffer is passed to CF/NS..NoCopy functions, the ownership is transfered unless the deallocator argument is set to 'kCFAllocatorNull'. llvm-svn: 151608
* [analyzer] Malloc: reason about the ObjC messages and C++.Anna Zaks2012-02-241-0/+75
Assume none of the ObjC messages defined in system headers free memory, except for the ones containing 'freeWhenDone' selector. Currently, just assume that the region escapes to the messages with 'freeWhenDone' (ideally, we want to treat it as 'free()'). For now, always assume that regions escape when passed to C++ methods. llvm-svn: 151410
OpenPOWER on IntegriCloud