Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23028 from brentdax/all-in-the-family-5.1
[5.1] [NFC] Move selector family logic to ObjCSelector
- Loading branch information
Showing
4 changed files
with
97 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
//===--- ObjCSelectorFamily.def - Objective-C Selector Families - C++ ---*-===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file defines macros used for macro-metaprogramming with Objective-C | ||
// selector families, categories of Objective-C methods with special ARC | ||
// semantics. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef OBJC_SELECTOR_FAMILY | ||
#define OBJC_SELECTOR_FAMILY(LABEL, PREFIX) | ||
#endif | ||
|
||
OBJC_SELECTOR_FAMILY(Alloc, "alloc") | ||
OBJC_SELECTOR_FAMILY(Copy, "copy") | ||
OBJC_SELECTOR_FAMILY(Init, "init") | ||
OBJC_SELECTOR_FAMILY(MutableCopy, "mutableCopy") | ||
OBJC_SELECTOR_FAMILY(New, "new") | ||
|
||
#undef OBJC_SELECTOR_FAMILY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters