Skip to content

Commit 00be0b5

Browse files
committed
Add comments in both added files
1 parent d4129d8 commit 00be0b5

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

include/swift/Basic/Semantics.def

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212
//
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+
//
1317
// SEMA_ATTR(NAME, C_STR)
1418
//
1519
//===----------------------------------------------------------------------===//
@@ -70,17 +74,5 @@ SEMA_ATTR(SLOWPATH, "slowpath")
7074
SEMA_ATTR(PROGRAMTERMINATION_POINT, "programtermination_point")
7175
SEMA_ATTR(CONVERT_TO_OBJECTIVE_C, "convertToObjectiveC")
7276

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-
8577
#undef SEMA_ATTR
8678

include/swift/Basic/Semantics.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
118
#ifndef SWIFT_SEMANTICS_H
219
#define SWIFT_SEMANTICS_H
320

0 commit comments

Comments
 (0)