Skip to content

Commit 9561808

Browse files
Update PackageDescription.md (#3143)
1 parent 25e4ccc commit 9561808

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

Documentation/PackageDescription.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static func target(
553553
/// - cxxSettings: The C++ settings for this target.
554554
/// - swiftSettings: The Swift settings for this target.
555555
/// - linkerSettings: The linker settings for this target.
556-
static func target(
556+
static func executableTarget(
557557
name: String,
558558
dependencies: [Target.Dependency] = [],
559559
path: String? = nil,
@@ -1056,35 +1056,48 @@ The supported C language standard to use for compiling C sources in the package.
10561056
enum CLanguageStandard {
10571057
case c89
10581058
case c90
1059-
case iso9899_1990
1060-
case iso9899_199409
1059+
case c99
1060+
case c11
1061+
case c17
1062+
case c18
1063+
case c2x
10611064
case gnu89
10621065
case gnu90
1063-
case c99
1064-
case iso9899_1999
10651066
case gnu99
1066-
case c11
1067-
case iso9899_2011
10681067
case gnu11
1068+
case gnu17
1069+
case gnu18
1070+
case gnu2x
1071+
case iso9899_1990 = "iso9899:1990"
1072+
case iso9899_199409 = "iso9899:199409"
1073+
case iso9899_1999 = "iso9899:1999"
1074+
case iso9899_2011 = "iso9899:2011"
1075+
case iso9899_2017 = "iso9899:2017"
1076+
case iso9899_2018 = "iso9899:2018"
10691077
}
10701078
```
1079+
10711080
# CXXLanguageStandard
10721081

10731082
`enum CXXLanguageStandard`
10741083

1075-
The supported C++ language standards to use for compiling C++ sources in the package.
1084+
The supported C++ language standard to use for compiling C++ sources in the package.
10761085

10771086
```swift
10781087
enum CXXLanguageStandard {
10791088
case cxx98 = "c++98"
10801089
case cxx03 = "c++03"
1090+
case cxx11 = "c++11"
1091+
case cxx14 = "c++14"
1092+
case cxx17 = "c++17"
1093+
case cxx1z = "c++1z"
1094+
case cxx20 = "c++20"
10811095
case gnucxx98 = "gnu++98"
10821096
case gnucxx03 = "gnu++03"
1083-
case cxx11 = "c++11"
10841097
case gnucxx11 = "gnu++11"
1085-
case cxx14 = "c++14"
10861098
case gnucxx14 = "gnu++14"
1087-
case cxx1z = "c++1z"
1099+
case gnucxx17 = "gnu++17"
10881100
case gnucxx1z = "gnu++1z"
1101+
case gnucxx20 = "gnu++20"
10891102
}
10901103
```

0 commit comments

Comments
 (0)