summaryrefslogtreecommitdiffstats
path: root/clang/test/Rewriter
Commit message (Collapse)AuthorAgeFilesLines
...
* objective-c modern translator: synthesize argument typeFariborz Jahanian2012-06-291-0/+3
| | | | | | | correctly for blocks and function pointer arguments in the written constructor. // rdar://11359268 llvm-svn: 159456
* objective-c modern translator: Translation into objc_msgSend_stretFariborz Jahanian2012-06-292-1/+44
| | | | | | | entry point which requires nil check before calling objc_msgSend_stret. // rdar://11359268 - wip. llvm-svn: 159445
* Restructure how the driver communicates information about theJohn McCall2012-06-2087-89/+89
| | | | | | | | | | | | | | | | | | | | | | | | target Objective-C runtime down to the frontend: break this down into a single target runtime kind and version, and compute all the relevant information from that. This makes it relatively painless to add support for new runtimes to the compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z, available at the driver level as a better and more general alternative to -fgnu-runtime and -fnext-runtime. This new concept of an Objective-C runtime also encompasses what we were previously separating out as the "Objective-C ABI", so fragile vs. non-fragile runtimes are now really modelled as different kinds of runtime, paving the way for better overall differentiation. As a sort of special case, continue to accept the -cc1 flag -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak. I won't go so far as to say "no functionality change", even ignoring the new driver flag, but subtle changes in driver semantics are almost certainly not intended. llvm-svn: 158793
* modern objc translation: Add translation of @autoreleasepoolFariborz Jahanian2012-05-231-0/+32
| | | | | | statement. // rdar://11474836. llvm-svn: 157359
* [objc] When boxing a BOOL/NSInteger/NSUInteger type, use the correspondingArgyrios Kyrtzidis2012-05-101-0/+4
| | | | | | | | numberWithBool:/numberWithInteger:/numberWithUnsignedInteger: NSNumber selectors. rdar://11428703 llvm-svn: 156583
* Test for previously checked in patch.Fariborz Jahanian2012-05-101-0/+80
| | | | | | // rdar://11374235 llvm-svn: 156552
* Remove this test again which fails the build-bot for reasons yetFariborz Jahanian2012-05-091-85/+0
| | | | | | unknown to me. llvm-svn: 156480
* Re-add test for // rdar://11374235Fariborz Jahanian2012-05-091-0/+85
| | | | llvm-svn: 156477
* Remove thid test for now.Fariborz Jahanian2012-05-091-85/+0
| | | | llvm-svn: 156455
* Modern objective-c translation. Translating defaultFariborz Jahanian2012-05-081-1/+26
| | | | | | synthesis of property getter/setters. // rdar://11374235 llvm-svn: 156447
* modern objc translation. objc_getClass() and objc_getMetaClass()Fariborz Jahanian2012-05-081-0/+10
| | | | | | | prototypes should both return `struct objc_class *`. // rdar://11375495 llvm-svn: 156418
* Revert r156097, which appears to be causing some breakage.Douglas Gregor2012-05-071-9/+0
| | | | llvm-svn: 156304
* objc modern translator: fix up attribute for dynamic property in a category.Fariborz Jahanian2012-05-031-0/+10
| | | | | | // rdar://11095151 llvm-svn: 156127
* modern objc translator: support for default propertyFariborz Jahanian2012-05-031-0/+60
| | | | | | synthesis translation. // rdar://11374235 - wip. llvm-svn: 156125
* modern objc translator: used size_t in coupleFariborz Jahanian2012-05-0316-0/+29
| | | | | | of places. // rdar://11375908 llvm-svn: 156106
* modern objc translation. objc_getClass() and objc_getMetaClass()Fariborz Jahanian2012-05-031-0/+9
| | | | | | | prototypes should both return `struct objc_class *`. // rdar://11375495 llvm-svn: 156097
* Modern objective-c translation: Fixing couple of bugsFariborz Jahanian2012-05-021-0/+48
| | | | | | | related to laying out ivar structs and accessing non-fragile-ivar in more compilated cases. // rdar://11323187 llvm-svn: 156004
* modern objective-c translation of private ivars.Fariborz Jahanian2012-05-011-0/+53
| | | | | | // rdar://11351299 llvm-svn: 155921
* clang/test/Rewriter: Remove XFAIL and add -U__declspec to other 9 tests. ↵NAKAMURA Takumi2012-05-018-21/+10
| | | | | | mingw32 tends to define built-in __declspec. llvm-svn: 155911
* clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Remove XFAIL and ↵NAKAMURA Takumi2012-05-011-5/+2
| | | | | | add -U__declspec. mingw32 tends to define built-in __declspec. llvm-svn: 155910
* modern objective-c translator. named aggregate typesFariborz Jahanian2012-04-303-3/+139
| | | | | | | | defined inside the objc class belong to class's decl. scope. This is to conform to objective-c rules. // rdar://11351299 llvm-svn: 155855
* objective-c modern translator: Correctly translateFariborz Jahanian2012-04-271-2/+30
| | | | | | | nonfragile ivar access code when ivar type is a locally defined struct/union type. // rdar://11323187 llvm-svn: 155740
* test/Rewriter: Mark 4 tests as XFAIL:mingw32, due to predefined ↵NAKAMURA Takumi2012-04-274-0/+4
| | | | | | __declspec(a) issue. llvm-svn: 155692
* modern objective-c transltion: Fixes a translation bugFariborz Jahanian2012-04-261-0/+16
| | | | | | | of writing a __block variable being initialized with a constructed object. // rdar://11326988 llvm-svn: 155673
* objective-c modern translator: more tests.Fariborz Jahanian2012-04-255-1/+81
| | | | llvm-svn: 155585
* improve a modern objc translator test.Fariborz Jahanian2012-04-251-3/+6
| | | | llvm-svn: 155569
* modern objc rewriter: fixes a bug writing Fariborz Jahanian2012-04-251-0/+2
| | | | | | | a const qualified static c-function. // rdar://11314329 llvm-svn: 155564
* modern objc translator: Allow writing of multipleFariborz Jahanian2012-04-241-0/+10
| | | | | | | declaration of __block variables on same lines with initializers. // rdsr://7547630 llvm-svn: 155473
* objc modern rewriter: allow translation ofFariborz Jahanian2012-04-241-0/+12
| | | | | | | multiple declaration of block variables (with no initializer) on the same line. llvm-svn: 155462
* clang/test/Rewriter/objc-modern-boxing.mm: Mark as XFAIL:mingw for now, due ↵NAKAMURA Takumi2012-04-241-0/+4
| | | | | | to predefined __declspec similar to r155278. llvm-svn: 155417
* clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Mark as ↵NAKAMURA Takumi2012-04-211-0/+3
| | | | | | | | XFAIL:mingw for now, due to predefined __declspec. It could be tweaked to add -triple i686-win32, though. llvm-svn: 155278
* minor improvement to couple of tests.Fariborz Jahanian2012-04-201-1/+1
| | | | llvm-svn: 155204
* objective-c modern translator: Further improving the lastFariborz Jahanian2012-04-191-1/+12
| | | | | | | patch fixing writing a spurious 'static' into the wrong place. // rdar://11275241 llvm-svn: 155130
* modern objective-c translator: Fix writing a spurious 'static'Fariborz Jahanian2012-04-191-0/+11
| | | | | | | into the wrong place when rewriting a static function which declares block literals. // rdar://11275241 llvm-svn: 155084
* Implements boxed expressions for Objective-C. <rdar://problem/10194391>Patrick Beard2012-04-191-0/+68
| | | | llvm-svn: 155082
* objective-c modern translation. Correct rewriting ofFariborz Jahanian2012-04-171-0/+45
| | | | | | | | block meta-data of block literals declared inside of extern "C" functions. // rdar://1131490 llvm-svn: 154939
* Modern objective-c translator:'self' used insideFariborz Jahanian2012-04-161-0/+3
| | | | | | block literal is imported. // rdar://11259664 llvm-svn: 154876
* modern objective-c translator: translation of implicitFariborz Jahanian2012-04-1614-8/+35
| | | | | | | cast to/from block pointer types. // rdar://11202764 Also, many more modern translator tests. llvm-svn: 154869
* objective-c modern translator: buildit objc boolFariborz Jahanian2012-04-164-13/+13
| | | | | | | type for rewriter project will be BoolTy. // rdar://11231426. llvm-svn: 154861
* objective-c modern translator: Make metadataFariborz Jahanian2012-04-141-0/+14
| | | | | | definition for protocols static. // rdar://11248048 llvm-svn: 154753
* modern objective-c translator: Fixes translation ofFariborz Jahanian2012-04-132-0/+47
| | | | | | | __typeof which is a regression by reverting r154360. // rdar://11233924 llvm-svn: 154679
* modern objective-c translator: When translatingFariborz Jahanian2012-04-131-0/+23
| | | | | | | | call to 'super' use __rw_objc_super as type of the 'super' meta-data instead of objc_super. // rdar://11239894 llvm-svn: 154670
* objective-c numeric literal: type of boolean isFariborz Jahanian2012-04-121-0/+31
| | | | | | | that of typedef BOOL if found. // rdar://11231426 llvm-svn: 154595
* modern objective-c translator. ifdef'out Fariborz Jahanian2012-04-121-1/+6
| | | | | | | __weak and __block when rewriting. // rdar://11236342 llvm-svn: 154592
* modern objective-c translator. Fixes a mis-translation whenFariborz Jahanian2012-04-111-0/+18
| | | | | | of a __block struct object. // rdar://11230308 llvm-svn: 154566
* modern objective-c translator. Fixes a translation bug when Fariborz Jahanian2012-04-111-0/+28
| | | | | | | first ivar in the list is a bitfield. // rdar://11229770 llvm-svn: 154534
* modern objective-c translation: writing containerFariborz Jahanian2012-04-101-0/+48
| | | | | | subscripting. // rdar://11203853 llvm-svn: 154441
* objective-c modern translator: rewriting specificFariborz Jahanian2012-04-101-0/+33
| | | | | | | implicit casts which is needed to produce good c++ code. // rdar://11202764 llvm-svn: 154360
* more testing of objc's dictionary literal translation.Fariborz Jahanian2012-04-061-1/+19
| | | | llvm-svn: 154220
* modern objective-c translation: support for Fariborz Jahanian2012-04-061-0/+37
| | | | | | dictionary literals. This concludes // rdar://10803676 llvm-svn: 154218
OpenPOWER on IntegriCloud