summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Patch to get around a rewriter bug rewriting storage classFariborz Jahanian2010-03-041-6/+15
| | | | | | on a block API struct definition. llvm-svn: 97754
* Fixes a bug whereby static const block var has static Fariborz Jahanian2010-03-041-0/+17
| | | | | | moved incorrectly. (radar 7714443). llvm-svn: 97734
* Cast a pointer to 'long long' to satisfy all compilation models.Fariborz Jahanian2010-03-021-1/+3
| | | | | | Satisfies radar 7703202. llvm-svn: 97532
* More rewriter of nested blocks fun stuff.Fariborz Jahanian2010-03-011-19/+28
| | | | | | Radar 7696893. llvm-svn: 97520
* Prevent rewriter crash when variable type is missing.Fariborz Jahanian2010-02-261-0/+4
| | | | | | Fixes radar 7692183. llvm-svn: 97281
* Minor cleanup of the rewriter.Fariborz Jahanian2010-02-261-18/+22
| | | | llvm-svn: 97280
* Removed some unused code in rewriter.Fariborz Jahanian2010-02-261-28/+2
| | | | llvm-svn: 97274
* Fix rewriting of byref variables in nested blocks.Fariborz Jahanian2010-02-261-2/+9
| | | | | | Fixes radar 7692350. llvm-svn: 97254
* Rewriting of imported variable from outerFariborz Jahanian2010-02-261-0/+1
| | | | | | | blocks's argument in the inner block requires special treatment. Fixes radar 7692419. llvm-svn: 97244
* Support rewriting of property synthesis with retain/copyFariborz Jahanian2010-02-261-25/+98
| | | | | | attributes. Fixes radar 7214439. llvm-svn: 97203
* Implement nasty rewriting of nested blocks when innerFariborz Jahanian2010-02-241-4/+76
| | | | | | | blocks use variables not used in any of the outer blocks. (Fixes radar 7682149). llvm-svn: 97073
* Fix rewriting of a method when return type isFariborz Jahanian2010-02-241-0/+4
| | | | | | a block pointer type. Fixes radar 7682149. llvm-svn: 97008
* Fixes a rewriting of qualified-id type which exposed a biggerFariborz Jahanian2010-02-231-5/+0
| | | | | | rewriting problem. Fixes radar 7680953. llvm-svn: 96987
* Fixes a rewriting of byref variable when its initializer isFariborz Jahanian2010-02-221-13/+29
| | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798
* Eliminate the default arguments to ASTContext::getFunctionType(),Douglas Gregor2010-02-211-13/+37
| | | | | | | | fixing up a few callers that thought they were propagating NoReturn information but were in fact saying something about exception specifications. llvm-svn: 96766
* Revert: "Change InitListExpr to allocate the array for holding references"Ted Kremenek2010-02-191-10/+6
| | | | | | | | This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652
* Change InitListExpr to allocate the array for holding referencesTed Kremenek2010-02-191-6/+10
| | | | | | | | | | | | | | | | to initializer expressions in an array allocated using ASTContext. This plugs a memory leak when ASTContext uses a BumpPtrAllocator to allocate memory for AST nodes. In my mind this isn't an ideal solution; it would be nice to have a general "vector"-like class that allocates memory using ASTContext, but whose guts could be separated from the methods of InitListExpr itself. I haven't gone and taken this approach yet because it isn't clear yet if we'll eventually want an alternate solution for recylcing memory using by InitListExprs as we are constructing the ASTs. llvm-svn: 96642
* Patch removes IVars list from ObjCInterfaceDecl andFariborz Jahanian2010-02-191-3/+3
| | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638
* __typeof should be able to handle block pointer types whenFariborz Jahanian2010-02-181-1/+1
| | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549
* Minor rewriter cleanup and a test for a block rewriting bug.Fariborz Jahanian2010-02-161-1/+1
| | | | llvm-svn: 96361
* Fix rewriter bug when function call inside block with block parameter Fariborz Jahanian2010-02-161-4/+41
| | | | | | causes C++ compile error (radar 7651312). llvm-svn: 96352
* Fix a broken rewritin of @implementation keyword.Fariborz Jahanian2010-02-151-1/+1
| | | | | | (fixes radar 7649577). llvm-svn: 96270
* Pass StringRefs to InsertText/ReplaceText in RewriteObjC and remove a ton of ↵Benjamin Kramer2010-02-141-120/+91
| | | | | | unnecessary length arguments. llvm-svn: 96164
* Fixes a rewriter bug rewriting function decl.Fariborz Jahanian2010-02-121-2/+14
| | | | | | | with block-pointer-type as one or more of its arguments. Fixes radar 7638400. llvm-svn: 95992
* Fixes a rewriting bug where order of constructor expression arguments did ↵Fariborz Jahanian2010-02-111-15/+28
| | | | | | | | | | not match order of constructor arguments (all block API specific). This was exposed only in a large block literal expression in a large file where PtrSet container size execceded its limit and required reallocation. Fixes radar 7638294 llvm-svn: 95936
* Allocate the SubExprs array in ObjCMessageExpr using the allocator ↵Ted Kremenek2010-02-111-2/+2
| | | | | | associated with ASTContext. This fixes yet another leak (<rdar://problem/7639260>). llvm-svn: 95930
* Eliminate a bunch of unnecessary ASTContexts from members functions ofDouglas Gregor2010-02-111-2/+2
| | | | | | Decl subclasses. No functionality change. llvm-svn: 95841
* Patch to rewrite blocks into unique api names.Fariborz Jahanian2010-02-101-13/+16
| | | | | | Fixes radar 7630551 llvm-svn: 95796
* Provide rewriting suppport for use of __typeof__Fariborz Jahanian2010-02-101-1/+43
| | | | | | in a declaration statement. Fixes radar 7628153. llvm-svn: 95788
* Comment out category's property decls. in rewrite.Fariborz Jahanian2010-02-101-0/+4
| | | | | | Fixes radar 7630636. llvm-svn: 95744
* Add guard in RewriteObjC::HandleTopLevelSingleDecl() to not doTed Kremenek2010-02-051-5/+3
| | | | | | | anything when Sema has issued an error. This matches the behavior in RewriteObjC::HandleTranslationUnit(). llvm-svn: 95434
* Fixes a minor rewriter bug messaging inside a function call.Fariborz Jahanian2010-02-051-1/+5
| | | | | | Fixes radar 7617047. llvm-svn: 95392
* Some clean up of replacement text API no longer needed byFariborz Jahanian2010-02-051-2/+2
| | | | | | my recent changes. llvm-svn: 95391
* Fix a nested ivar reference rewriting bug.Fariborz Jahanian2010-02-051-13/+40
| | | | | | (Fixes radar 7607605). llvm-svn: 95341
* Fix rewriting of 'const' __block variables inFariborz Jahanian2010-02-041-2/+16
| | | | | | the rewriter. (Fixes radar 7607781). llvm-svn: 95267
* Fix more rewriting of protocol-quialified 'id' type.Fariborz Jahanian2010-02-031-0/+2
| | | | | | (Fixes radar 7607413). llvm-svn: 95257
* Fix up rewriting of protocol qualified types in objc rewriter.Fariborz Jahanian2010-02-021-1/+9
| | | | | | Fixes radar 7589414. llvm-svn: 95097
* Fixes rewriter bug rewriting byref related API where a structFariborz Jahanian2010-01-291-2/+1
| | | | | | definition comes after where it is needed. Fixes radar 7589385. llvm-svn: 94788
* Fixes a rewrite bug rewriting nested ivars reference.Fariborz Jahanian2010-01-281-4/+8
| | | | | | (Radar 7583971). llvm-svn: 94724
* Added assert to the rewrite.Fariborz Jahanian2010-01-261-0/+1
| | | | llvm-svn: 94584
* Refix rewriting of an ivar access when it isFariborz Jahanian2010-01-261-14/+1
| | | | | | type-cast to its sub-class (radar 7575882). llvm-svn: 94559
* Fix a regression caused by my rewriting of cast of ivarFariborz Jahanian2010-01-261-9/+11
| | | | | | access (was radar 7575882). llvm-svn: 94481
* Fixes a rewriting bug of access ivar of a variable castFariborz Jahanian2010-01-251-1/+10
| | | | | | to subclass. (Fixes radar 7575882). llvm-svn: 94444
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-211-2/+5
| | | | | | Fixes radar 7562952. llvm-svn: 94087
* Use the llvm coding convention for indentation for switch.Mike Stump2010-01-201-19/+19
| | | | llvm-svn: 93966
* The type of a compound literal expression is not necessarily the same as theJohn McCall2010-01-191-4/+4
| | | | | | type which was syntactically written. Fixes PR 6080. llvm-svn: 93933
* Rewriteing of gnu extension __typeof in objective-c rewriter.Fariborz Jahanian2010-01-191-1/+13
| | | | | | Fixes radar 6358225. llvm-svn: 93917
* Preserve type source information in compound literal expressions.John McCall2010-01-181-3/+8
| | | | | | Patch by Enea Zaffanella! llvm-svn: 93752
* Fix a rewriting crash and correct rewriting of __blockFariborz Jahanian2010-01-161-7/+18
| | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650
* define __weak to null in rewritten source for Fariborz Jahanian2010-01-151-0/+1
| | | | | | -fms-extensions as well. llvm-svn: 93569
OpenPOWER on IntegriCloud