0

Remove ARC boilerplate in /docs

Update the docs to remove references to the ARC boilerplate no longer
being used.

Bug: 1468376
Change-Id: I576890ee156c124faa2ef4269d96829c84941238
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4748526
Commit-Queue: Avi Drissman <avi@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1179172}
This commit is contained in:
Avi Drissman
2023-08-03 19:08:30 +00:00
committed by Chromium LUCI CQ
parent 4250928475
commit bd19b34da1
2 changed files with 0 additions and 20 deletions

@ -89,10 +89,6 @@ tests that use the app interface.
#import "ios/testing/earl_grey/earl_grey_test.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
GREY_STUB_CLASS_IN_APP_MAIN_QUEUE(MyTestAppInterface)
```

@ -80,22 +80,6 @@ technical reason to not use ARC, you may disable it for a target, but this is
expected to be an exceedingly rare situation and you should have a discussion
with the relevant platform experts before doing so.
### ARC compile guard {#convention-boilerplate}
While Chromium was undergoing a transition from non-ARC to ARC, to prevent
leaks, files that were written to build with ARC had a boilerplate compile guard
after the include block:
```objectivec
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
```
Now that ARC is enabled by default, this boilerplate is not needed, and is
currently in the [process of being removed](https://crbug.com/1468376). Please
do not add this boilerplate to new files.
### Header files {#convention-headers}
Header files can be: