Skip to content

Update links for repositories moved to the swiftlang org on GitHub #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ endif()
find_package(SwiftSyntax CONFIG)
if(NOT SwiftSyntax_FOUND)
FetchContent_Declare(Syntax
GIT_REPOSITORY https://github.com/apple/swift-syntax
GIT_REPOSITORY https://github.com/swiftlang/swift-syntax
GIT_TAG main)
list(APPEND _SF_VENDOR_DEPENDENCIES Syntax)
endif()
Expand Down
2 changes: 1 addition & 1 deletion Documentation/PrettyPrinter.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if someCondition {
### Token Generation

Token generation begins with the abstract syntax tree (AST) of the Swift source
file, provided by the [SwiftSyntax](https://github.com/apple/swift-syntax)
file, provided by the [SwiftSyntax](https://github.com/swiftlang/swift-syntax)
library. We have overloaded a `visit` method for each of the different kinds of
syntax nodes. Most of these nodes are higher-level, and are composed of other
nodes. For example, `FunctionDeclSyntax` contains
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var dependencies: [Package.Dependency] {
return [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.2"),
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.2.0"),
.package(url: "https://github.com/apple/swift-syntax.git", branch: "main"),
.package(url: "https://github.com/swiftlang/swift-syntax.git", branch: "main"),
]
}
}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# swift-format

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

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

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

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

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

```sh
VERSION=510.1.0 # replace this with the version you need
git clone https://github.com/apple/swift-format.git
git clone https://github.com/swiftlang/swift-format.git
cd swift-format
git checkout "tags/$VERSION"
swift build -c release
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
}

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