-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fmt: keep empty curlies and parenthesis as they are (vlang#7329)
- Loading branch information
Lukas Neubert
authored
Dec 22, 2020
1 parent
a47749b
commit a2cd1b1
Showing
6 changed files
with
131 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const () | ||
|
||
const ( | ||
) | ||
|
||
struct Bar {} | ||
|
||
struct Bar2 { | ||
} | ||
|
||
interface Spam {} | ||
|
||
interface Spam2 { | ||
} | ||
|
||
enum Baz {} | ||
|
||
enum Baz2 { | ||
} | ||
|
||
fn foo() {} | ||
|
||
fn foo2() { | ||
} | ||
|
||
fn main() { | ||
arr := []int{} | ||
x := 1 | ||
for s in arr {} | ||
for s in arr { | ||
} | ||
for i := 0; i < 5; i++ {} | ||
for j := 0; j < 5; j++ { | ||
} | ||
for false {} | ||
for false { | ||
} | ||
defer {} | ||
defer { | ||
} | ||
unsafe {} | ||
unsafe { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,7 @@ struct Foo { | |
x int | ||
} | ||
|
||
struct Test { | ||
} | ||
struct Test {} | ||
|
||
struct Bar { | ||
Foo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters