summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/objc-array-literal.m
Commit message (Collapse)AuthorAgeFilesLines
* [SemaObjC] Improve ObjCDictionaryLiteral and ObjCArryLiteral diagnosticsBruno Cardoso Lopes2016-07-191-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Sema actions on ObjCDictionaryLiteral and ObjCArryLiteral are currently done as a side-effect of Sema upon parent expressions, which incurs of delayed typo corrections for such literals to be performed by TypoTransforms upon the ObjCDictionaryLiteral and ObjCArryLiteral themselves instead of its elements individually. This is specially bad because it was not designed to act on several elements; searching through all possible combinations of corrections for several elements is very expensive. Additionally, when one of the elements has no correction candidate, we still explore all options and at the end emit no typo corrections whatsoever. Do the proper sema actions by acting on each element alone during appropriate literal parsing time to get proper diagonistics and decent compile time behavior. Differential Revision: http://reviews.llvm.org/D22183 rdar://problem/21046678 llvm-svn: 276020
* Cleanup ObjCInterfaceDecl lookup for ObjC literalsAlex Denisov2015-07-241-3/+3
| | | | llvm-svn: 243092
* Add more tests for NSArray/NSDictionary literalsAlex Denisov2015-02-171-0/+12
| | | | llvm-svn: 229470
* ObjectiveC. Define a new cc1 flag Fariborz Jahanian2013-11-011-0/+2
| | | | | | | | | | | -fobjc-subscripting-legacy-runtime which is off by default and on only when using ObjectiveC legacy runtime. Use this flag to allow array and dictionary subscripting and disallow objectiveC pointer arithmatic in ObjectiveC legacy runtime. // rdar://15363492 llvm-svn: 193889
* Refine string literal concatenation warning within an NSArray literal to not ↵Ted Kremenek2013-10-091-0/+8
| | | | | | warn when the literal comes from a macro expansion. Fixes <rdar://problem/15147688>. llvm-svn: 192328
* Refine diagnostics in my last patch.Fariborz Jahanian2013-08-141-1/+1
| | | | | | // rdar://14303083 llvm-svn: 188335
* ObjectiveC [QoI] issue warning if an element of an nsarrayFariborz Jahanian2013-08-131-0/+6
| | | | | | | expresison is a concatenated nsstring element. // rdar://14303083 llvm-svn: 188332
* Add clang support for new Objective-C literal syntax for NSDictionary, NSArray,Ted Kremenek2012-03-061-0/+41
NSNumber, and boolean literals. This includes both Sema and Codegen support. Included is also support for new Objective-C container subscripting. My apologies for the large patch. It was very difficult to break apart. The patch introduces changes to the driver as well to cause clang to link in additional runtime support when needed to support the new language features. Docs are forthcoming to document the implementation and behavior of these features. llvm-svn: 152137
OpenPOWER on IntegriCloud