Skip to content

Commit 0ac5bbc

Browse files
authored
Merge pull request #757 from ahoppen/swiftlang-migration
Update links for repositories moved to the swiftlang org on GitHub
2 parents 4cd4380 + cef7eca commit 0ac5bbc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ endif()
6868
find_package(SwiftSyntax CONFIG)
6969
if(NOT SwiftSyntax_FOUND)
7070
FetchContent_Declare(Syntax
71-
GIT_REPOSITORY https://github.com/apple/swift-syntax
71+
GIT_REPOSITORY https://github.com/swiftlang/swift-syntax
7272
GIT_TAG main)
7373
list(APPEND _SF_VENDOR_DEPENDENCIES Syntax)
7474
endif()

Documentation/PrettyPrinter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ if someCondition {
263263
### Token Generation
264264

265265
Token generation begins with the abstract syntax tree (AST) of the Swift source
266-
file, provided by the [SwiftSyntax](https://github.com/apple/swift-syntax)
266+
file, provided by the [SwiftSyntax](https://github.com/swiftlang/swift-syntax)
267267
library. We have overloaded a `visit` method for each of the different kinds of
268268
syntax nodes. Most of these nodes are higher-level, and are composed of other
269269
nodes. For example, `FunctionDeclSyntax` contains

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ var dependencies: [Package.Dependency] {
163163
return [
164164
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
165165
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.2.0"),
166-
.package(url: "https://github.com/apple/swift-syntax.git", branch: "main"),
166+
.package(url: "https://github.com/swiftlang/swift-syntax.git", branch: "main"),
167167
]
168168
}
169169
}

README.md

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

33
`swift-format` provides the formatting technology for
4-
[SourceKit-LSP](https://github.com/apple/sourcekit-lsp) and the building
4+
[SourceKit-LSP](https://github.com/swiftlang/sourcekit-lsp) and the building
55
blocks for doing code formatting transformations.
66

77
This package can be used as a [command line tool](#command-line-usage)
@@ -18,7 +18,7 @@ invoked via an [API](#api-usage).
1818
### Swift 5.8 and later
1919

2020
As of Swift 5.8, swift-format depends on the version of
21-
[SwiftSyntax](https://github.com/apple/swift-syntax) whose parser has been
21+
[SwiftSyntax](https://github.com/swiftlang/swift-syntax) whose parser has been
2222
rewritten in Swift and no longer has dependencies on libraries in the
2323
Swift toolchain.
2424

@@ -34,7 +34,7 @@ SwiftSyntax; the 5.8 release of swift-format is `508.0.0`, not `0.50800.0`.
3434
### Swift 5.7 and earlier
3535

3636
`swift-format` versions 0.50700.0 and earlier depend on versions of
37-
[SwiftSyntax](https://github.com/apple/swift-syntax) that used a standalone
37+
[SwiftSyntax](https://github.com/swiftlang/swift-syntax) that used a standalone
3838
parsing library distributed as part of the Swift toolchain. When using these
3939
versions, you should check out and build `swift-format` from the release
4040
tag or branch that is compatible with the version of Swift you are using.
@@ -74,7 +74,7 @@ Install `swift-format` using the following commands:
7474

7575
```sh
7676
VERSION=510.1.0 # replace this with the version you need
77-
git clone https://github.com/apple/swift-format.git
77+
git clone https://github.com/swiftlang/swift-format.git
7878
cd swift-format
7979
git checkout "tags/$VERSION"
8080
swift build -c release

Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
853853
}
854854

855855
override func visit(_ node: YieldStmtSyntax) -> SyntaxVisitorContinueKind {
856-
// As of https://github.com/apple/swift-syntax/pull/895, the token following a `yield` keyword
856+
// As of https://github.com/swiftlang/swift-syntax/pull/895, the token following a `yield` keyword
857857
// *must* be on the same line, so we cannot break here.
858858
after(node.yieldKeyword, tokens: .space)
859859
return .visitChildren

0 commit comments

Comments
 (0)