summaryrefslogtreecommitdiff
path: root/lib/Frontend/RewriteObjC.cpp
Commit message (Collapse)AuthorAge
...
* Patch to rewrite blocks into unique api names.Fariborz Jahanian2010-02-10
| | | | | | | | Fixes radar 7630551 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95796 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide rewriting suppport for use of __typeof__Fariborz Jahanian2010-02-10
| | | | | | | in a declaration statement. Fixes radar 7628153. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95788 91177308-0d34-0410-b5e6-96231b3b80d8
* Comment out category's property decls. in rewrite.Fariborz Jahanian2010-02-10
| | | | | | | Fixes radar 7630636. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95744 91177308-0d34-0410-b5e6-96231b3b80d8
* Add guard in RewriteObjC::HandleTopLevelSingleDecl() to not doTed Kremenek2010-02-05
| | | | | | | | anything when Sema has issued an error. This matches the behavior in RewriteObjC::HandleTranslationUnit(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95434 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a minor rewriter bug messaging inside a function call.Fariborz Jahanian2010-02-05
| | | | | | | Fixes radar 7617047. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95392 91177308-0d34-0410-b5e6-96231b3b80d8
* Some clean up of replacement text API no longer needed byFariborz Jahanian2010-02-05
| | | | | | | my recent changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95391 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a nested ivar reference rewriting bug.Fariborz Jahanian2010-02-05
| | | | | | | (Fixes radar 7607605). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95341 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rewriting of 'const' __block variables inFariborz Jahanian2010-02-04
| | | | | | | | the rewriter. (Fixes radar 7607781). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95267 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix more rewriting of protocol-quialified 'id' type.Fariborz Jahanian2010-02-03
| | | | | | | | (Fixes radar 7607413). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95257 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix up rewriting of protocol qualified types in objc rewriter.Fariborz Jahanian2010-02-02
| | | | | | | | Fixes radar 7589414. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95097 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes rewriter bug rewriting byref related API where a structFariborz Jahanian2010-01-29
| | | | | | | definition comes after where it is needed. Fixes radar 7589385. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94788 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a rewrite bug rewriting nested ivars reference.Fariborz Jahanian2010-01-28
| | | | | | | | (Radar 7583971). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94724 91177308-0d34-0410-b5e6-96231b3b80d8
* Added assert to the rewrite.Fariborz Jahanian2010-01-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94584 91177308-0d34-0410-b5e6-96231b3b80d8
* Refix rewriting of an ivar access when it isFariborz Jahanian2010-01-26
| | | | | | | | type-cast to its sub-class (radar 7575882). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94559 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a regression caused by my rewriting of cast of ivarFariborz Jahanian2010-01-26
| | | | | | | | access (was radar 7575882). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94481 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a rewriting bug of access ivar of a variable castFariborz Jahanian2010-01-25
| | | | | | | | to subclass. (Fixes radar 7575882). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94444 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-21
| | | | | | | | Fixes radar 7562952. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94087 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the llvm coding convention for indentation for switch.Mike Stump2010-01-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93966 91177308-0d34-0410-b5e6-96231b3b80d8
* The type of a compound literal expression is not necessarily the same as theJohn McCall2010-01-19
| | | | | | | | type which was syntactically written. Fixes PR 6080. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93933 91177308-0d34-0410-b5e6-96231b3b80d8
* Rewriteing of gnu extension __typeof in objective-c rewriter.Fariborz Jahanian2010-01-19
| | | | | | | Fixes radar 6358225. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93917 91177308-0d34-0410-b5e6-96231b3b80d8
* Preserve type source information in compound literal expressions.John McCall2010-01-18
| | | | | | | | Patch by Enea Zaffanella! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93752 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a rewriting crash and correct rewriting of __blockFariborz Jahanian2010-01-16
| | | | | | | | declaration where its initializer has a type-cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93650 91177308-0d34-0410-b5e6-96231b3b80d8
* define __weak to null in rewritten source for Fariborz Jahanian2010-01-15
| | | | | | | -fms-extensions as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93569 91177308-0d34-0410-b5e6-96231b3b80d8
* Preserve type source information in explicit cast expressions.John McCall2010-01-15
| | | | | | | | Patch by Enea Zaffanella. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93522 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not do the block-specific rewrite when there is no block literals.Fariborz Jahanian2010-01-15
| | | | | | | Fixes radar 7546096. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93519 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch to avoid duplicate declaration of byref structsFariborz Jahanian2010-01-14
| | | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93474 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵Fariborz Jahanian2010-01-14
| | | | | | | | | place. Fixes radar 7284618. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93382 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve on objective-c pointer recognitionFariborz Jahanian2010-01-12
| | | | | | | during rewrite. No functionality chang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93241 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rewriting of MacOS sjlj based eh.Fariborz Jahanian2010-01-12
| | | | | | | | Fixes radar 7522880. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93219 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rewriting for forward class declaration.Fariborz Jahanian2010-01-11
| | | | | | | | (fixes radar 6969189). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93201 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup rewrite of ivars accessed via an explicit objectFariborz Jahanian2010-01-11
| | | | | | | | in a function. Fixes radar 7522803. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93159 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence MSVC warning.Benjamin Kramer2010-01-10
| | | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93124 91177308-0d34-0410-b5e6-96231b3b80d8
* revert 91891, a workaround for PR5514.Chris Lattner2010-01-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93077 91177308-0d34-0410-b5e6-96231b3b80d8
* clang ObjC rewriter: generated code used in "for (x in y)" loop uses Fariborz Jahanian2010-01-08
| | | | | | | | incorrect cast, causing compile error (fixes radar 7342867). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92986 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a bug where we were rewriting two definitions ofFariborz Jahanian2010-01-07
| | | | | | | | _objc_method (part of radar 7490408). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92957 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixes a bug in my last patch (related to radar 7490331).Fariborz Jahanian2010-01-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92952 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid error when convering a pointer to integer in Fariborz Jahanian2010-01-07
| | | | | | | rewriting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92925 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rewriting of ivars. Fixes radar 7490331.Fariborz Jahanian2010-01-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92924 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo: rename Rewriter::getRewritenText() -> Rewriter::getRewrittenText().Ted Kremenek2010-01-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92922 91177308-0d34-0410-b5e6-96231b3b80d8
* Change ObjCContainerDecl to contain the entire range for the '@end'Ted Kremenek2010-01-07
| | | | | | | | | | | | piece of the declaration. The '@' and the 'end' are separate tokens, and require two SourceLocations to accurately track. This change was motivated because ObjCContainerDecl::getSourceRange() would previously not return the entire range of the declaration (the 'end' would be left off). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92891 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed a bug where initializer is a macro in rewrite.Fariborz Jahanian2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92801 91177308-0d34-0410-b5e6-96231b3b80d8
* API support for __block variables which are also __weak.Fariborz Jahanian2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92755 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor clean up.Fariborz Jahanian2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92746 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove bogus "C" from preamble block decls.Steve Naroff2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92744 91177308-0d34-0410-b5e6-96231b3b80d8
* More rewriting of __block APIs. wip.Fariborz Jahanian2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92742 91177308-0d34-0410-b5e6-96231b3b80d8
* More rewriting of __block objective-c pointer variables. wip.Fariborz Jahanian2010-01-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92558 91177308-0d34-0410-b5e6-96231b3b80d8
* More rewriting of __block declared objective-c/block pointers.Fariborz Jahanian2010-01-04
| | | | | | | | This is wip. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92501 91177308-0d34-0410-b5e6-96231b3b80d8
* When rewriting a __block declaration, use a suitable API to get location ofFariborz Jahanian2009-12-30
| | | | | | | | the declaration in the presence of an initializer macro. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92312 91177308-0d34-0410-b5e6-96231b3b80d8
* More cleanup/refactoring of the rewrite.Fariborz Jahanian2009-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92062 91177308-0d34-0410-b5e6-96231b3b80d8
* Some cleanup and refactoring of rewriter.Fariborz Jahanian2009-12-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92049 91177308-0d34-0410-b5e6-96231b3b80d8