File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
//
13
+ // This macro is used to map the global definition name of a semantic attribute to its raw value.
14
+ // NAME: the global name used in the compiler
15
+ // C_STR: the raw value used in swift
16
+ //
13
17
// SEMA_ATTR(NAME, C_STR)
14
18
//
15
19
// ===----------------------------------------------------------------------===//
@@ -70,17 +74,5 @@ SEMA_ATTR(SLOWPATH, "slowpath")
70
74
SEMA_ATTR(PROGRAMTERMINATION_POINT, " programtermination_point" )
71
75
SEMA_ATTR(CONVERT_TO_OBJECTIVE_C, " convertToObjectiveC" )
72
76
73
- // SEMA_ATTR(, "456")
74
- // SEMA_ATTR(, "123")
75
- // SEMA_ATTR(, "223")
76
- // SEMA_ATTR(, "bar")
77
- // SEMA_ATTR(, "class")
78
- // SEMA_ATTR(, "crazy")
79
- // SEMA_ATTR(, "enum")
80
- // SEMA_ATTR(, "struct")
81
- // SEMA_ATTR(, "struct1")
82
- // SEMA_ATTR(, "struct2")
83
- // SEMA_ATTR(, "test_driver")
84
-
85
77
#undef SEMA_ATTR
86
78
Original file line number Diff line number Diff line change
1
+ // ===--- Semantics.h - Semantics Attribute Definitions -------------*- C++ -*-===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+ //
13
+ // Implementation of the matching definition file.
14
+ // This file holds all semantics attributes as consant stirng literals.
15
+ //
16
+ // ===----------------------------------------------------------------------===//
17
+
1
18
#ifndef SWIFT_SEMANTICS_H
2
19
#define SWIFT_SEMANTICS_H
3
20
You can’t perform that action at this time.
0 commit comments