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