summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Preserve type source information in explicit cast expressions.John McCall2010-01-151-96/+68
| | | | | | Patch by Enea Zaffanella. llvm-svn: 93522
* Do not do the block-specific rewrite when there is no block literals.Fariborz Jahanian2010-01-151-1/+1
| | | | | | Fixes radar 7546096. llvm-svn: 93519
* Patch to avoid duplicate declaration of byref structsFariborz Jahanian2010-01-141-9/+35
| | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474
* Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵Fariborz Jahanian2010-01-141-2/+38
| | | | | | | | place. Fixes radar 7284618. llvm-svn: 93382
* Improve on objective-c pointer recognitionFariborz Jahanian2010-01-121-2/+3
| | | | | | during rewrite. No functionality chang. llvm-svn: 93241
* Fix rewriting of MacOS sjlj based eh.Fariborz Jahanian2010-01-121-4/+4
| | | | | | Fixes radar 7522880. llvm-svn: 93219
* Fix rewriting for forward class declaration.Fariborz Jahanian2010-01-111-3/+11
| | | | | | (fixes radar 6969189). llvm-svn: 93201
* Fixup rewrite of ivars accessed via an explicit objectFariborz Jahanian2010-01-111-2/+3
| | | | | | in a function. Fixes radar 7522803. llvm-svn: 93159
* Silence MSVC warning.Benjamin Kramer2010-01-101-1/+1
| | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation llvm-svn: 93124
* revert 91891, a workaround for PR5514.Chris Lattner2010-01-091-2/+1
| | | | llvm-svn: 93077
* clang ObjC rewriter: generated code used in "for (x in y)" loop uses Fariborz Jahanian2010-01-081-2/+6
| | | | | | incorrect cast, causing compile error (fixes radar 7342867). llvm-svn: 92986
* Fixes a bug where we were rewriting two definitions ofFariborz Jahanian2010-01-071-1/+2
| | | | | | _objc_method (part of radar 7490408). llvm-svn: 92957
OpenPOWER on IntegriCloud