summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Added summary section for Object Literals and Subscripting, which contains ↵Patrick Beard2012-03-201-1/+7
| | | | | | the external link. llvm-svn: 153141
* modern objective-c translator: add static function to initialize Fariborz Jahanian2012-03-202-3/+36
| | | | | | | the class pointer in the category structure. // rdar://11076938 llvm-svn: 153138
* More careful consideration of C++11 13.3.3.1p4. Fixes PR12257.Sebastian Redl2012-03-202-7/+47
| | | | llvm-svn: 153130
* Fix the other place where C++98 work for initializer lists was necessary.Sebastian Redl2012-03-202-2/+7
| | | | llvm-svn: 153129
* more modern objective-c meta-data stuff.Fariborz Jahanian2012-03-201-3/+17
| | | | llvm-svn: 153127
* Fixed typos.Patrick Beard2012-03-201-2/+2
| | | | llvm-svn: 153126
* Link to Objective-C literals documentation.Patrick Beard2012-03-201-0/+1
| | | | llvm-svn: 153124
* Objective-C literals documentation.Patrick Beard2012-03-201-0/+314
| | | | llvm-svn: 153123
* Don't include FixIts with a null replacement range. Fixes ↵Ted Kremenek2012-03-204-5/+24
| | | | | | <rdar://problem/11040133>. llvm-svn: 153122
* Fix a use-after-free in thunk emission. EmitThunk may call RAUW on Init, ↵Benjamin Kramer2012-03-202-1/+43
| | | | | | | | invalidating the pointer. Fixes PR12284. The test case only triggered under asan/valgrind, but it's better than nothing. llvm-svn: 153120
* modern objective-c translator: provide meta-data initializationFariborz Jahanian2012-03-202-17/+86
| | | | | | | via functions for certain pointer initialization fields. // rdar://11076938 llvm-svn: 153117
* Debug info: Tighten up uses of plain MDNode pointers which don't survive ↵Benjamin Kramer2012-03-202-15/+325
| | | | | | | | replaceOperandWith. TrackingVH notices when it gets RAUW'd. Fixes PR12305 and PR12315. llvm-svn: 153115
* modern objective-c translator: couple of minorFariborz Jahanian2012-03-202-3/+6
| | | | | | | changes to how meta-data is declared. // rdar://11076938 llvm-svn: 153098
* Test commit.Patrick Beard2012-03-201-1/+0
| | | | llvm-svn: 153096
* objective-c modern translator: Refactor intername ivar names toFariborz Jahanian2012-03-205-25/+27
| | | | | | | one place and use it throughout. Also, change ivar name to avoid name collisions. // rdar://11079366 llvm-svn: 153093
* [avx] Define the _mm256_loadu2_xxx and _mm256_storeu2_xxx intrinsics.Chad Rosier2012-03-201-0/+67
| | | | | | | | | From the Intel Optimization Reference Manual, Section 11.6.2. When data cannot be aligned or alignment is not known, 16-byte memory accesses may provide better performance. rdar://11076953 llvm-svn: 153091
* Add missing bitcast that was breaking Objective-C++ exception typeinfo ↵David Chisnall2012-03-201-1/+2
| | | | | | (GNUstep runtime). llvm-svn: 153090
* Add test case for <rdar://problem/10553686>, which illustrates RetainCount ↵Ted Kremenek2012-03-201-0/+26
| | | | | | checker working with inlined C++ template functions. llvm-svn: 153069
* Fix crash when querying the CFG reported when using the thread safety analysisTed Kremenek2012-03-192-1/+14
| | | | | | | on code using multi-dimensional arrays. Fix by DeLesley Hutchins, and reported in PR 12271. llvm-svn: 153067
* [libclang] Have clang_getCursorExtent() return the range of the main file whenArgyrios Kyrtzidis2012-03-191-0/+8
| | | | | | | | the passed cursor is the translation unit cursor. Patch by Clint Caywood! llvm-svn: 153062
* removed unused code in the modern objc rewriter file.Fariborz Jahanian2012-03-191-68/+0
| | | | llvm-svn: 153052
* LanguageExtensions: Manually word wrap a line to reduce horizontal scrolling.Benjamin Kramer2012-03-191-1/+2
| | | | llvm-svn: 153048
* line endingsMatt Beaumont-Gay2012-03-191-8/+8
| | | | llvm-svn: 153046
* Use a simpler pluralization constructMatt Beaumont-Gay2012-03-191-1/+1
| | | | llvm-svn: 153044
* modern objective-c translator: fix type of objc_exception_throwFariborz Jahanian2012-03-195-7/+27
| | | | | | declaration and its siblings. llvm-svn: 153043
* test/Driver/cpath.c: Mark this as XFAIL:mingw32,win32 for now.NAKAMURA Takumi2012-03-191-0/+3
| | | | | | On Win32 hosts, ';' is used for path separator. llvm-svn: 153037
* Fix a regression where ':' in CPLUS_INCLUDE_PATH and friends would no longer ↵Nico Weber2012-03-192-10/+12
| | | | | | | | separate paths. This regressed in r152583. Also add a test to make sure it doesn't regress again. llvm-svn: 153034
* Add the missing compatibility warning for braced initializers as default ↵Sebastian Redl2012-03-182-3/+5
| | | | | | arguments. llvm-svn: 153026
* An error can't be in a warning group.Benjamin Kramer2012-03-181-2/+1
| | | | llvm-svn: 153012
* [analyzer] Mark a failed-realloc's result as an interesting symbol between ↵Jordy Rose2012-03-182-229/+377
| | | | | | | | | | the realloc call and the null check, so we get nicer path notes. Fixes a regression introduced by the diagnostic pruning added in r152361. This is accomplished by calling markInteresting /during/ path diagnostic generation, and as such relies on deterministic ordering of BugReporterVisitors -- namely, that BugReporterVisitors are run in /reverse/ order from how they are added. (Right now that's a consequence of storing visitors in an ImmutableList, where new items are added to the front.) It's a little hacky, but it works for now. I think this is the best we can do without storing the relation between the old and new symbols, and that would be a hit whether or not there ends up being an error. llvm-svn: 153010
* Turns #import in MS Mode into an error.Aaron Ballman2012-03-184-2/+40
| | | | llvm-svn: 153009
* Use character literals for vexing initialization fixit hints.David Blaikie2012-03-183-0/+38
| | | | | | | | | | | | | | | Instead of suggesting " = 0" for "char c();", suggest " = '\0'", and similarly for other char types (wide, 16, and 32). Add tests for all these, and since this means testing such hints under C++0x, add tests for some untested C++0x hint cases in the existing code, including suggesting nullptr for pointer initialization. This sets up the initialization helper to provide better type fidelity that will be especially helpful for non-assignment cases (such as fixit-correcting NULL usage in function calls (eg: foo(char) + foo(NULL) => foo('\0') instead of the less informative foo(0))) llvm-svn: 153008
* [analyzer] Use a FoldingSet to cache simple RetainSummary instances, rather ↵Jordy Rose2012-03-181-40/+58
| | | | | | | | | | than explicitly keeping DoNothing and StopTracking summaries and nothing else. I tried to test the effects of this change on memory usage and run time, but what I saw on retain-release.m was indistinguishable from noise (debug and release builds). Even so, some caveman profiling showed 101 cache hits that we would have generated new summaries for before (i.e. not default or stop summaries), and the more code we analyze, the more memory we should save. Maybe we should have a standard project for benchmarking the retain count checker's memory and time? llvm-svn: 153007
* Replace a FIXME with a diagnostic when we can't resolve theDouglas Gregor2012-03-182-1/+11
| | | | | | nested-name-specifier for a class template declaration. Fixes PR12291. llvm-svn: 153006
* Diagnose tag and class template declarations with qualifiedDouglas Gregor2012-03-176-29/+75
| | | | | | declarator-ids that occur at class scope. Fixes PR8019. llvm-svn: 153002
* [analyzer] Unify retain-count summary generation for class and instance ↵Jordy Rose2012-03-171-53/+26
| | | | | | methods. No functionality change. llvm-svn: 153001
* Kill cocoa::deriveNamingConvention and cocoa::followsFundamentalRule. They ↵Jordy Rose2012-03-173-52/+1
| | | | | | | | are now just simple wrappers around method families, and method decls can cache method family lookups. Also, no one is using them right now. The one difference between ObjCMethodDecl::getMethodFamily and Selector::getMethodFamily is that the former will do some additional sanity checking, and since CoreFoundation types don't look like Objective-C objects, an otherwise interesting method will get a method family of OMF_None. Future clients that use method families should consider how they want to handle CF types. llvm-svn: 153000
* [analyzer] Remove duplicate work on deriving method behavior. No ↵Jordy Rose2012-03-171-83/+74
| | | | | | | | | | functionality change. The cocoa::deriveNamingConventions helper is just using method families anyway now, and the way RetainSummaryTemplate works means we're allocating an extra summary for every method with a relevant family. Also, fix RetainSummaryTemplate to do the right thing w/r/t annotating an /existing/ summary. This was probably the real cause of <rdar://problem/10824732> and the fix in r152448. llvm-svn: 152998
* modern objective-c rewriter: further improvement inFariborz Jahanian2012-03-172-29/+29
| | | | | | | | writing @synchronized statement; do not call locking expression more than once and support early exits in @synchronized's statement block (such as return). llvm-svn: 152993
* StaticAnalyzer: Fix abuse of StringRef in r152962.NAKAMURA Takumi2012-03-172-2/+2
| | | | llvm-svn: 152982
* When determining the availability of an enum constant, also considerDouglas Gregor2012-03-172-8/+17
| | | | | | | the availability of the enumeration type itself. Fixes <rdar://problem/10996386>. llvm-svn: 152977
* [analyzer] Don't claim an object was returned with +1 retain count before ↵Jordy Rose2012-03-172-4/+14
| | | | | | | | counting autoreleases. Fixes PR10376. (Also, 80-column violations.) llvm-svn: 152976
* [analyzer] Add test case from PR10794 for using 'new' with Obj-C objects.Jordy Rose2012-03-171-0/+6
| | | | llvm-svn: 152975
* [analyzer] This test is breaking windows bots, make it darwin-specific.Anna Zaks2012-03-171-1/+1
| | | | | | | (The plist output does not match the one we expect, specifically we do not detect that the interesting symbol is returned by a call.) llvm-svn: 152969
* Fix crash on invalid code. I've tried to produce a reduced test case, but ↵Ted Kremenek2012-03-171-1/+10
| | | | | | when I do the specific crash is hidden. Fixes <rdar://problem/11063594>. llvm-svn: 152968
* [analyzer] Shorten the stack hint diagnostic.Anna Zaks2012-03-164-20/+24
| | | | | | | Do not display the standard "Returning from 'foo'", when a stack hint is available. llvm-svn: 152964
* Make the storing variable's name generic.Bill Wendling2012-03-161-1/+1
| | | | llvm-svn: 152963
* [analyzer] Create symbol-aware stack hints (building upon r152837).Anna Zaks2012-03-165-92/+1063
| | | | | | | | | | | | | | | | | | The symbol-aware stack hint combines the checker-provided message with the information about how the symbol was passed to the callee: as a parameter or a return value. For malloc, the generated messages look like this : "Returning from 'foo'; released memory via 1st parameter" "Returning from 'foo'; allocated memory via 1st parameter" "Returning from 'foo'; allocated memory returned" "Returning from 'foo'; reallocation of 1st parameter failed" (We are yet to handle cases when the symbol is a field in a struct or an array element.) llvm-svn: 152962
* [analyzer] +CommentsAnna Zaks2012-03-161-5/+9
| | | | llvm-svn: 152961
* [analyzer] Add a statistic for the number of times we reach the maxAnna Zaks2012-03-161-1/+10
| | | | | | number of steps in the work list. llvm-svn: 152960
OpenPOWER on IntegriCloud