Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Patch to get around a rewriter bug rewriting storage class | Fariborz Jahanian | 2010-03-04 | 1 | -6/+15 |
| | | | | | | on a block API struct definition. llvm-svn: 97754 | ||||
* | Fixes a bug whereby static const block var has static | Fariborz Jahanian | 2010-03-04 | 1 | -0/+17 |
| | | | | | | moved incorrectly. (radar 7714443). llvm-svn: 97734 | ||||
* | Cast a pointer to 'long long' to satisfy all compilation models. | Fariborz Jahanian | 2010-03-02 | 1 | -1/+3 |
| | | | | | | Satisfies radar 7703202. llvm-svn: 97532 | ||||
* | More rewriter of nested blocks fun stuff. | Fariborz Jahanian | 2010-03-01 | 1 | -19/+28 |
| | | | | | | Radar 7696893. llvm-svn: 97520 | ||||
* | Prevent rewriter crash when variable type is missing. | Fariborz Jahanian | 2010-02-26 | 1 | -0/+4 |
| | | | | | | Fixes radar 7692183. llvm-svn: 97281 | ||||
* | Minor cleanup of the rewriter. | Fariborz Jahanian | 2010-02-26 | 1 | -18/+22 |
| | | | | llvm-svn: 97280 | ||||
* | Removed some unused code in rewriter. | Fariborz Jahanian | 2010-02-26 | 1 | -28/+2 |
| | | | | llvm-svn: 97274 | ||||
* | Fix rewriting of byref variables in nested blocks. | Fariborz Jahanian | 2010-02-26 | 1 | -2/+9 |
| | | | | | | Fixes radar 7692350. llvm-svn: 97254 | ||||
* | Rewriting of imported variable from outer | Fariborz Jahanian | 2010-02-26 | 1 | -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/copy | Fariborz Jahanian | 2010-02-26 | 1 | -25/+98 |
| | | | | | | attributes. Fixes radar 7214439. llvm-svn: 97203 | ||||
* | Implement nasty rewriting of nested blocks when inner | Fariborz Jahanian | 2010-02-24 | 1 | -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 is | Fariborz Jahanian | 2010-02-24 | 1 | -0/+4 |
| | | | | | | a block pointer type. Fixes radar 7682149. llvm-svn: 97008 | ||||
* | Fixes a rewriting of qualified-id type which exposed a bigger | Fariborz Jahanian | 2010-02-23 | 1 | -5/+0 |
| | | | | | | rewriting problem. Fixes radar 7680953. llvm-svn: 96987 | ||||
* | Fixes a rewriting of byref variable when its initializer is | Fariborz Jahanian | 2010-02-22 | 1 | -13/+29 |
| | | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798 | ||||
* | Eliminate the default arguments to ASTContext::getFunctionType(), | Douglas Gregor | 2010-02-21 | 1 | -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 Kremenek | 2010-02-19 | 1 | -10/+6 |
| | | | | | | | | This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652 | ||||
* | Change InitListExpr to allocate the array for holding references | Ted Kremenek | 2010-02-19 | 1 | -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 and | Fariborz Jahanian | 2010-02-19 | 1 | -3/+3 |
| | | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638 | ||||
* | __typeof should be able to handle block pointer types when | Fariborz Jahanian | 2010-02-18 | 1 | -1/+1 |
| | | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549 | ||||
* | Minor rewriter cleanup and a test for a block rewriting bug. | Fariborz Jahanian | 2010-02-16 | 1 | -1/+1 |
| | | | | llvm-svn: 96361 | ||||
* | Fix rewriter bug when function call inside block with block parameter | Fariborz Jahanian | 2010-02-16 | 1 | -4/+41 |
| | | | | | | causes C++ compile error (radar 7651312). llvm-svn: 96352 | ||||
* | Fix a broken rewritin of @implementation keyword. | Fariborz Jahanian | 2010-02-15 | 1 | -1/+1 |
| | | | | | | (fixes radar 7649577). llvm-svn: 96270 | ||||
* | Pass StringRefs to InsertText/ReplaceText in RewriteObjC and remove a ton of ↵ | Benjamin Kramer | 2010-02-14 | 1 | -120/+91 |
| | | | | | | unnecessary length arguments. llvm-svn: 96164 | ||||
* | Fixes a rewriter bug rewriting function decl. | Fariborz Jahanian | 2010-02-12 | 1 | -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 Jahanian | 2010-02-11 | 1 | -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 Kremenek | 2010-02-11 | 1 | -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 of | Douglas Gregor | 2010-02-11 | 1 | -2/+2 |
| | | | | | | Decl subclasses. No functionality change. llvm-svn: 95841 | ||||
* | Patch to rewrite blocks into unique api names. | Fariborz Jahanian | 2010-02-10 | 1 | -13/+16 |
| | | | | | | Fixes radar 7630551 llvm-svn: 95796 | ||||
* | Provide rewriting suppport for use of __typeof__ | Fariborz Jahanian | 2010-02-10 | 1 | -1/+43 |
| | | | | | | in a declaration statement. Fixes radar 7628153. llvm-svn: 95788 | ||||
* | Comment out category's property decls. in rewrite. | Fariborz Jahanian | 2010-02-10 | 1 | -0/+4 |
| | | | | | | Fixes radar 7630636. llvm-svn: 95744 | ||||
* | Add guard in RewriteObjC::HandleTopLevelSingleDecl() to not do | Ted Kremenek | 2010-02-05 | 1 | -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 Jahanian | 2010-02-05 | 1 | -1/+5 |
| | | | | | | Fixes radar 7617047. llvm-svn: 95392 | ||||
* | Some clean up of replacement text API no longer needed by | Fariborz Jahanian | 2010-02-05 | 1 | -2/+2 |
| | | | | | | my recent changes. llvm-svn: 95391 | ||||
* | Fix a nested ivar reference rewriting bug. | Fariborz Jahanian | 2010-02-05 | 1 | -13/+40 |
| | | | | | | (Fixes radar 7607605). llvm-svn: 95341 | ||||
* | Fix rewriting of 'const' __block variables in | Fariborz Jahanian | 2010-02-04 | 1 | -2/+16 |
| | | | | | | the rewriter. (Fixes radar 7607781). llvm-svn: 95267 | ||||
* | Fix more rewriting of protocol-quialified 'id' type. | Fariborz Jahanian | 2010-02-03 | 1 | -0/+2 |
| | | | | | | (Fixes radar 7607413). llvm-svn: 95257 | ||||
* | Fix up rewriting of protocol qualified types in objc rewriter. | Fariborz Jahanian | 2010-02-02 | 1 | -1/+9 |
| | | | | | | Fixes radar 7589414. llvm-svn: 95097 | ||||
* | Fixes rewriter bug rewriting byref related API where a struct | Fariborz Jahanian | 2010-01-29 | 1 | -2/+1 |
| | | | | | | definition comes after where it is needed. Fixes radar 7589385. llvm-svn: 94788 | ||||
* | Fixes a rewrite bug rewriting nested ivars reference. | Fariborz Jahanian | 2010-01-28 | 1 | -4/+8 |
| | | | | | | (Radar 7583971). llvm-svn: 94724 | ||||
* | Added assert to the rewrite. | Fariborz Jahanian | 2010-01-26 | 1 | -0/+1 |
| | | | | llvm-svn: 94584 | ||||
* | Refix rewriting of an ivar access when it is | Fariborz Jahanian | 2010-01-26 | 1 | -14/+1 |
| | | | | | | type-cast to its sub-class (radar 7575882). llvm-svn: 94559 | ||||
* | Fix a regression caused by my rewriting of cast of ivar | Fariborz Jahanian | 2010-01-26 | 1 | -9/+11 |
| | | | | | | access (was radar 7575882). llvm-svn: 94481 | ||||
* | Fixes a rewriting bug of access ivar of a variable cast | Fariborz Jahanian | 2010-01-25 | 1 | -1/+10 |
| | | | | | | to subclass. (Fixes radar 7575882). llvm-svn: 94444 | ||||
* | Patch to implement rewriting of properties. | Fariborz Jahanian | 2010-01-21 | 1 | -2/+5 |
| | | | | | | Fixes radar 7562952. llvm-svn: 94087 | ||||
* | Use the llvm coding convention for indentation for switch. | Mike Stump | 2010-01-20 | 1 | -19/+19 |
| | | | | llvm-svn: 93966 | ||||
* | The type of a compound literal expression is not necessarily the same as the | John McCall | 2010-01-19 | 1 | -4/+4 |
| | | | | | | type which was syntactically written. Fixes PR 6080. llvm-svn: 93933 | ||||
* | Rewriteing of gnu extension __typeof in objective-c rewriter. | Fariborz Jahanian | 2010-01-19 | 1 | -1/+13 |
| | | | | | | Fixes radar 6358225. llvm-svn: 93917 | ||||
* | Preserve type source information in compound literal expressions. | John McCall | 2010-01-18 | 1 | -3/+8 |
| | | | | | | Patch by Enea Zaffanella! llvm-svn: 93752 | ||||
* | Fix a rewriting crash and correct rewriting of __block | Fariborz Jahanian | 2010-01-16 | 1 | -7/+18 |
| | | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650 | ||||
* | define __weak to null in rewritten source for | Fariborz Jahanian | 2010-01-15 | 1 | -0/+1 |
| | | | | | | -fms-extensions as well. llvm-svn: 93569 |