mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-25 22:30:49 +08:00
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:
parent
ce7f0f1de9
commit
617429d358
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
|
@ -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_;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user