Files
swift-mirror/lib/ClangImporter/RenamedProtocols.def
Doug Gregor e5fff12bf0 Add option to split Objective-C selectors based on the last preposition.
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
2014-03-17 20:34:48 +00:00

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