mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The frontend option -split-objc-selectors splits the first part of an Objective-C selector into both a function name and the first parameter name at the last preposition. For example, this Objective-C method: - (NSString *)stringByPaddingToLength:(NSUInteger)newLength withString:(NSString *)padString startingAtIndex:(NSUInteger)padIndex is imported as func stringByPadding toLength(newLength: Int) withString(padString: String) startingAtIndex(padIndex: Int) -> String Swift SVN r15156
24 lines
928 B
C++
24 lines
928 B
C++
//===--- RenamedProtocols.def - Renamed Protocol names ----------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
// This file lists the Objective-C protocols that have been renamed
|
|
// due to conflicts with other class names, e.g.,
|
|
// NSObject-the-protocol vs. NSObject-the-class.
|
|
// ===---------------------------------------------------------------------===//
|
|
|
|
#ifndef RENAMED_PROTOCOL
|
|
# error Must define RENAMED_PROTOCOL(ObjCName, SwiftName)
|
|
#endif
|
|
|
|
RENAMED_PROTOCOL(NSObject, NSObjectProtocol)
|
|
|
|
#undef RENAMED_PROTOCOL
|