Skip to content

Commit 35eba3f

Browse files
authored
Merge pull request #250 from ahoppen/main-branch
Rename all references to the master branch to main (or something equivalent)
2 parents e28671a + b5b27a2 commit 35eba3f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Ignore Data Xcode stores when opening the project directly
66
/.swiftpm/xcode
77

8-
# We always build swiftSyntax of master dependencies. Ignore any fixed
8+
# We always build swiftSyntax of trunk dependencies. Ignore any fixed
99
# dependency versions.
1010
Package.resolved
1111

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Note: This is in reverse chronological order, so newer entries are added to the
44

55
## Swift 5.3
66

7-
* Introduced `FunctionCallExprSyntax.additionalTrailingClosures` property with type `MultipleTrailingClosureElementListSyntax?` for supporting [SE-0279 Multiple Trailing Closures](https://github.com/apple/swift-evolution/blob/master/proposals/0279-multiple-trailing-closures.md).
7+
* Introduced `FunctionCallExprSyntax.additionalTrailingClosures` property with type `MultipleTrailingClosureElementListSyntax?` for supporting [SE-0279 Multiple Trailing Closures](https://github.com/apple/swift-evolution/blob/main/proposals/0279-multiple-trailing-closures.md).
88

99
* Introduced `syntaxNodeType` property for all types conforming to `SyntaxProtocol`, which returns the underlying syntax node type. It is primarily intended as a debugging aid during development.
1010

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SwiftSyntax
22

33
SwiftSyntax is a set of Swift bindings for the
4-
[libSyntax](https://github.com/apple/swift/tree/master/lib/Syntax) library. It
4+
[libSyntax](https://github.com/apple/swift/tree/main/lib/Syntax) library. It
55
allows for Swift tools to parse, inspect, generate, and transform Swift source
66
code.
77

@@ -46,7 +46,7 @@ Then, import `SwiftSyntax` in your Swift code.
4646

4747
### Declare SwiftPM dependency with nightly build
4848

49-
1. Download and install the latest Trunk Development (master) [toolchain](https://swift.org/download/#snapshots).
49+
1. Download and install the latest Trunk Development [toolchain](https://swift.org/download/#snapshots).
5050

5151
2. Define the `TOOLCHAINS` environment variable as below to have the `swift` command point inside the toolchain:
5252

@@ -136,11 +136,11 @@ If you should hit any issues while using SwiftSyntax, we appreciate bug reports
136136

137137
## Contributing
138138

139-
### Building SwiftSyntax from `master`
139+
### Building SwiftSyntax from `main`
140140

141-
Since SwiftSyntax relies on definitions in the main Swift repository to generate the layout of the syntax tree using `gyb`, a checkout of [apple/swift](https://github.com/apple/swift) is still required to build `master` of SwiftSyntax.
141+
Since SwiftSyntax relies on definitions in the main Swift repository to generate the layout of the syntax tree using `gyb`, a checkout of [apple/swift](https://github.com/apple/swift) is still required to build the latest development snapshot of SwiftSyntax.
142142

143-
To build the `master` version of SwiftSyntax, follow the following instructions:
143+
To build the `main` branch of SwiftSyntax, follow the following instructions:
144144

145145
1. Check `swift-syntax` and `swift` out side by side:
146146

@@ -150,14 +150,14 @@ To build the `master` version of SwiftSyntax, follow the following instructions:
150150
- swift-syntax
151151
```
152152

153-
2. Make sure you have a recent [master Swift toolchain](https://swift.org/download/#snapshots) installed.
153+
2. Make sure you have a recent [Trunk Swift Toolchain](https://swift.org/download/#snapshots) installed.
154154
3. Define the `TOOLCHAINS` environment variable as below to have the `swift` command point inside the toolchain:
155155

156156
```
157157
$ export TOOLCHAINS=swift
158158
```
159159

160-
4. To make sure everything is setup correctly, check the return statement of `xcrun --find swift`. It should point inside the latest installed master toolchain. If it points inside an Xcode toolchain, check that you exported the `TOOLCHAINS` environment variable correctly. If it points inside a version specific toolchain (like Swift 5.0-dev), you'll need to remove that toolchain.
160+
4. To make sure everything is setup correctly, check the return statement of `xcrun --find swift`. It should point inside the latest installed trunk development toolchain. If it points inside an Xcode toolchain, check that you exported the `TOOLCHAINS` environment variable correctly. If it points inside a version specific toolchain (like Swift 5.0-dev), you'll need to remove that toolchain.
161161
5. Run `swift-syntax/build-script.py`.
162162

163163
If, despite following those instructions, you get compiler errors, the Swift toolchain might be too old to contain recent changes in Swift's SwiftSyntaxParser C library. In that case, you'll have to build the compiler and SwiftSyntax together with the following command:
@@ -173,7 +173,7 @@ Afterwards, SwiftPM can also generate an Xcode project to develop SwiftSyntax by
173173
If you also want to run tests locally, read the section below as testing has additional requirements.
174174

175175
### Local Testing
176-
SwiftSyntax uses some test utilities that need to be built as part of the Swift compiler project. To build the most recent version of SwiftSyntax and test it, follow the steps in [swift/README.md](https://github.com/apple/swift/blob/master/README.md) and pass `--llbuild --swiftpm --swiftsyntax` to the build script invocation to build SwiftSyntax and all its dependencies using the current `master` compiler.
176+
SwiftSyntax uses some test utilities that need to be built as part of the Swift compiler project. To build the most recent version of SwiftSyntax and test it, follow the steps in [swift/README.md](https://github.com/apple/swift/blob/main/README.md) and pass `--llbuild --swiftpm --swiftsyntax` to the build script invocation to build SwiftSyntax and all its dependencies using the current trunk (`main`) compiler.
177177

178178
SwiftSyntax can then be tested using the build script in `apple/swift` by running
179179
```

0 commit comments

Comments
 (0)