summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/RewriteObjC.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fixes a bug in my last patch (related to radar 7490331).Fariborz Jahanian2010-01-071-1/+1
| | | | llvm-svn: 92952
* Avoid error when convering a pointer to integer in Fariborz Jahanian2010-01-071-1/+1
| | | | | | rewriting. llvm-svn: 92925
* Fix rewriting of ivars. Fixes radar 7490331.Fariborz Jahanian2010-01-071-2/+3
| | | | llvm-svn: 92924
* Fix typo: rename Rewriter::getRewritenText() -> Rewriter::getRewrittenText().Ted Kremenek2010-01-071-1/+1
| | | | llvm-svn: 92922
* Change ObjCContainerDecl to contain the entire range for the '@end'Ted Kremenek2010-01-071-3/+3
| | | | | | | | | | | 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). llvm-svn: 92891
* Fixed a bug where initializer is a macro in rewrite.Fariborz Jahanian2010-01-051-0/+1
| | | | llvm-svn: 92801
* API support for __block variables which are also __weak.Fariborz Jahanian2010-01-051-5/+16
| | | | llvm-svn: 92755
* Minor clean up.Fariborz Jahanian2010-01-051-6/+3
| | | | llvm-svn: 92746
* Remove bogus "C" from preamble block decls.Steve Naroff2010-01-051-2/+2
| | | | llvm-svn: 92744
* More rewriting of __block APIs. wip.Fariborz Jahanian2010-01-051-26/+40
| | | | llvm-svn: 92742
* More rewriting of __block objective-c pointer variables. wip.Fariborz Jahanian2010-01-051-5/+80
| | | | llvm-svn: 92558
* More rewriting of __block declared objective-c/block pointers.Fariborz Jahanian2010-01-041-16/+45
| | | | | | This is wip. llvm-svn: 92501
* When rewriting a __block declaration, use a suitable API to get location ofFariborz Jahanian2009-12-301-1/+3
| | | | | | the declaration in the presence of an initializer macro. llvm-svn: 92312
* More cleanup/refactoring of the rewrite.Fariborz Jahanian2009-12-231-8/+6
| | | | llvm-svn: 92062
* Some cleanup and refactoring of rewriter.Fariborz Jahanian2009-12-231-4/+26
| | | | llvm-svn: 92049
* This patch concludes rewriteing of __block variables to allowFariborz Jahanian2009-12-231-2/+10
| | | | | | a small test case using Block_copy(...) API to pass. llvm-svn: 92038
* Removed a FIXME comment.Fariborz Jahanian2009-12-231-3/+2
| | | | llvm-svn: 92028
* More rewriting of __block variables.Fariborz Jahanian2009-12-231-4/+18
| | | | llvm-svn: 92027
* Add support for handling initializers in RewriteObjC::RewriteByRefVar().Steve Naroff2009-12-231-5/+16
| | | | | | As the FIXME indicates, RewriteByRefVar() won't work for multiple declarators (in general). I've discussed this with Fariborz and he is aware of the limitation. llvm-svn: 92007
* Patch to do more rewrite of __block variables.Fariborz Jahanian2009-12-231-11/+87
| | | | | | Still WIP. llvm-svn: 91977
* Work around PR5514.Anders Carlsson2009-12-221-1/+2
| | | | llvm-svn: 91891
* Template code for rewrite of __block variables - wip.Fariborz Jahanian2009-12-221-0/+7
| | | | llvm-svn: 91865
* Providing support for rewriting of block copy/dispose ofFariborz Jahanian2009-12-211-4/+11
| | | | | | imported block variables. WIP. llvm-svn: 91856
* Implemented rewriting of invocation of a block ivar.Fariborz Jahanian2009-12-181-0/+2
| | | | | | | (radar 7482224). llvm-svn: 91652
* Implement conditional block invocation rewriteFariborz Jahanian2009-12-151-12/+28
| | | | | | and some clean up and a block rewriter test. llvm-svn: 91435
* DeclaratorInfo -> TypeSourceInfo. Makes an effort to rename associated ↵John McCall2009-12-071-4/+4
| | | | | | | | | | | | | | | | | | | | | variables, but the results are imperfect. For posterity, I did: cat <<EOF > $cmdfile s/DeclaratorInfo/TypeSourceInfo/g s/DInfo/TInfo/g s/TypeTypeSourceInfo/TypeSourceInfo/g s/SourceTypeSourceInfo/TypeSourceInfo/g EOF find lib -name '*.cpp' -not -path 'lib/Parse/*' -exec sed -i '' -f $cmdfile '{}' \; find lib -name '*.h' -exec sed -i '' -f $cmdfile '{}' \; find include -name '*.h' -not -path 'include/clang/Parse/*' -not -path 'include/clang/Basic/*' -exec sed -i '' -f $cmdfile '{}' \; llvm-svn: 90743
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-061-44/+75
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=81871 http://llvm.org/viewvc/llvm-project?view=rev&revision=81936 http://llvm.org/viewvc/llvm-project?view=rev&revision=81945 llvm-svn: 90718
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-061-1/+1
| | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=86026 Note: The 'improved debugging' changes weren't integrated (since they were later reverted, since they didn't improve debugging). llvm-svn: 90693
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-061-2/+1
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=82174 llvm-svn: 90692
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-061-4/+11
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=72893 llvm-svn: 90690
* Don't call back() on an empty vector.Benjamin Kramer2009-12-051-2/+1
| | | | llvm-svn: 90678
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-10/+94
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71225 http://llvm.org/viewvc/llvm-project?view=rev&revision=73207 http://llvm.org/viewvc/llvm-project?view=rev&revision=73414 llvm-svn: 90677
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-051-9/+37
| | | | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=71086 http://llvm.org/viewvc/llvm-project?view=rev&revision=71107 Note: This fixes <rdar://problem/6845623> from protocol to template. llvm-svn: 90665
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-1/+1
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70978 llvm-svn: 90597
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-041-3/+13
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=70922 llvm-svn: 90595
* Centralize and complete the computation of value- and type-dependence for ↵Douglas Gregor2009-11-231-1/+1
| | | | | | DeclRefExprs llvm-svn: 89649
* Add SourceLocations to ObjCClassDecl for the class identifiers referenced by ↵Ted Kremenek2009-11-181-1/+1
| | | | | | @class. llvm-svn: 89170
* Preserve type source information in sizeof/alignof expressions, and pass itJohn McCall2009-11-041-1/+1
| | | | | | through to indexing. llvm-svn: 86018
OpenPOWER on IntegriCloud