Remove ARC boilerplate in Crashpad

ARC is now enabled by default, so there’s no need to enforce it
against files being put into non-ARC targets.

Bug: chromium:1468376
Change-Id: I58bbb4d1736293a6e9977954ce932dcfe2bafa54
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4750419
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Avi Drissman 2023-08-03 14:58:07 -04:00 committed by Crashpad LUCI CQ
parent ce7f0f1de9
commit 617429d358
18 changed files with 0 additions and 72 deletions

View File

@ -49,10 +49,6 @@
#include "util/ios/scoped_background_task.h"
#endif // BUILDFLAG(IS_IOS)
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace {

View File

@ -27,10 +27,6 @@
#include "testing/platform_test.h"
#include "util/thread/thread.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace test {
namespace {

View File

@ -54,10 +54,6 @@
#include "client/annotation.h"
#include "client/simulate_crash_ios.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace {

View File

@ -19,10 +19,6 @@
#include "gtest/gtest.h"
#include "testing/platform_test.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace test {
namespace {

View File

@ -18,10 +18,6 @@
#include "base/check.h"
#import "test/ios/cptest_google_test_runner_delegate.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@interface CPTestGoogleTestRunner : XCTestCase
@end

View File

@ -24,10 +24,6 @@
#include "util/mach/exception_types.h"
#include "util/mach/mach_extensions.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@interface CPTestTestCase : XCTestCase {
XCUIApplication* app_;
CPTestSharedObject* rootObject_;

View File

@ -20,10 +20,6 @@
#include "gtest/gtest.h"
#include "test/ios/cptest_google_test_runner_delegate.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@interface UIApplication (Testing)
- (void)_terminateWithStatus:(int)status;
@end

View File

@ -50,10 +50,6 @@
#include "util/ios/raw_logging.h"
#include "util/thread/thread.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
using OperationStatus = crashpad::CrashReportDatabase::OperationStatus;
using Report = crashpad::CrashReportDatabase::Report;

View File

@ -14,10 +14,6 @@
#import "test/ios/host/cptest_crash_view_controller.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@implementation CPTestCrashViewController
- (void)loadView {

View File

@ -16,10 +16,6 @@
#import "test/ios/host/cptest_application_delegate.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
int main(int argc, char* argv[]) {
NSString* appDelegateClassName;
@autoreleasepool {

View File

@ -30,10 +30,6 @@
#include "util/mac/service_management.h"
#include "util/stdlib/objc.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace {

View File

@ -27,10 +27,6 @@
#include "base/strings/sys_string_conversions.h"
#include "build/build_config.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace {
std::string ReadStringSysctlByName(const char* name) {

View File

@ -16,10 +16,6 @@
#import <Foundation/Foundation.h>
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace internal {

View File

@ -23,10 +23,6 @@
#include "base/strings/sys_string_conversions.h"
#include "util/misc/implicit_cast.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
launch_data_t CFPropertyToLaunchData(CFPropertyListRef property_cf) {

View File

@ -28,10 +28,6 @@
#include "gtest/gtest.h"
#include "util/stdlib/objc.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace test {
namespace {

View File

@ -22,10 +22,6 @@
#include "base/strings/stringprintf.h"
#include "gtest/gtest.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace test {
namespace {

View File

@ -30,10 +30,6 @@
#include "util/posix/process_info.h"
#include "util/stdlib/objc.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace crashpad {
namespace test {
namespace {

View File

@ -28,10 +28,6 @@
#include "util/misc/metrics.h"
#include "util/net/http_body.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
// An implementation of NSInputStream that reads from a
// crashpad::HTTPBodyStream.
@interface CrashpadHTTPBodyStreamTransport : NSInputStream {