summaryrefslogtreecommitdiffstats
path: root/clang/docs/AutomaticReferenceCounting.rst
Commit message (Collapse)AuthorAgeFilesLines
* [Docs] Modernize references to macOSJ. Ryan Stinnett2019-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This updates all places in documentation that refer to "Mac OS X", "OS X", etc. to instead use the modern name "macOS" when no specific version number is mentioned. If a specific version is mentioned, this attempts to use the OS name at the time of that version: * Mac OS X for 10.0 - 10.7 * OS X for 10.8 - 10.11 * macOS for 10.12 - present Reviewers: JDevlieghere Subscribers: mgorny, christof, arphaman, cfe-commits, lldb-commits, libcxx-commits, llvm-commits Tags: #clang, #lldb, #libc, #llvm Differential Revision: https://reviews.llvm.org/D62654 llvm-svn: 362113
* [Documentation] Use HTTPS whenever possibleEugene Zelenko2019-01-231-1/+1
| | | | | | Differential revision: https://reviews.llvm.org/D56946 llvm-svn: 351976
* [ObjCARC] Add an new attribute, objc_externally_retainedErik Pilkington2019-01-041-14/+73
| | | | | | | | | | | | | | | | | | | | This attribute, called "objc_externally_retained", exposes clang's notion of pseudo-__strong variables in ARC. Pseudo-strong variables "borrow" their initializer, meaning that they don't retain/release it, instead assuming that someone else is keeping their value alive. If a function is annotated with this attribute, implicitly strong parameters of that function aren't implicitly retained/released in the function body, and are implicitly const. This is useful to expose for performance reasons, most functions don't need the extra safety of the retain/release, so programmers can opt out as needed. This attribute can also apply to declarations of local variables, with similar effect. Differential revision: https://reviews.llvm.org/D55865 llvm-svn: 350422
* Fix title underlines being too short after r348429Pete Cooper2018-12-061-1/+1
| | | | llvm-svn: 348431
* Update ARC docs as objc_storeStrong returns void not idPete Cooper2018-12-051-1/+1
| | | | llvm-svn: 348429
* Fix and improve the ARC spec's wording about unmanaged objects.John McCall2018-07-201-19/+57
| | | | llvm-svn: 337524
* docs: update docs for objc_storeStrong behaviourSaleem Abdulrasool2017-02-111-5/+2
| | | | | | objc_storeStrong does not return a value. llvm-svn: 294855
* Trivial documentation fix regarding Obj-C ARC ↵Jonathan Roelofs2016-09-121-2/+2
| | | | | | | | | | | | | objc_arc_weak_reference_unavailable Fixed incorrect docs that referred to: objc_arc_weak_unavailable when it should be: objc_arc_weak_reference_unavailable Patch by: Sean McBride! llvm-svn: 281227
* Allow (Object *)kMyGlobalCFObj casts without bridgingBen Langmuir2015-02-251-1/+9
| | | | | | | | | | | | | | | | Previously we allowed these casts only for constants declared in system headers, which we assume are retain/release-neutral. Now also allow them for constants in user headers, treating them as +0. Practically, this means that we will now allow: id x = (id)kMyGlobalConst; But unlike with system headers we cannot mix them with +1 values: id y = (id)(b ? kMyGlobalConst : [Obj newValAtPlusOne]); // error id z = (id)(b ? kSystemGlobalConst: [Obj newValAtPlusOne]); // OK Thanks to John for suggesting this improvement. llvm-svn: 230534
* Documentation: formatting fixesDmitri Gribenko2013-03-131-2/+3
| | | | llvm-svn: 176948
* Tighten up the rules for precise lifetime and documentJohn McCall2013-03-131-21/+173
| | | | | | | | the requirements on the ARC optimizer. rdar://13407451 llvm-svn: 176924
* Attempt to not place ownership qualifiers on the result typeJohn McCall2013-03-011-5/+30
| | | | | | | | | | | of block declarators. Document the rule we use. Also document the rule that Doug implemented a few weeks ago which drops ownership qualifiers on function result types. rdar://10127067 llvm-svn: 176336
* Added a footnote to the documentation for objc_storeStrong that makes it clearMichael Gottesman2013-02-221-1/+6
| | | | | | | that a __strong object of block type is a valid argument to objc_storeStrong but that an objc_retain and not an objc_retainBlock will be emitted. llvm-svn: 175838
* Removed extra "`" from ARC documentation.Michael Gottesman2013-01-081-1/+1
| | | | llvm-svn: 171920
* Documentation: add a missing wordDmitri Gribenko2012-12-161-1/+1
| | | | llvm-svn: 170296
* Documentation: AutomaticReferenceCounting.rst: use CSS section numbering.Dmitri Gribenko2012-12-161-5/+52
| | | | | | This enables us to use the same document structure as in other files. llvm-svn: 170283
* docs: Fix completely broken adornment structure.Sean Silva2012-12-161-68/+60
| | | | | | | | | | | | The adornment: === Foo === is for titles, not sections. llvm-svn: 170278
* Documentation: convert AutomaticReferenceCounting.html to reSTDmitri Gribenko2012-12-131-0/+2061
Patch by Anastasi Voitova with with small fixes by me. llvm-svn: 170132
OpenPOWER on IntegriCloud