Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no newlines when only one thing in an initializer
- Loading branch information
1 parent
02d51a7
commit bcc39cf
Showing
4 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
int main () { | ||
int x; | ||
int y; | ||
memset(&x,0,4); | ||
memset(&y,0,4); | ||
} |
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,17 @@ | ||
@@ | ||
type T; | ||
symbol x; | ||
@@ | ||
- T x; | ||
+ T x = { 0 }; | ||
... | ||
- memset(&x, 0, ...); | ||
|
||
@@ | ||
type T; | ||
symbol y; | ||
@@ | ||
- T y; | ||
+ T y = { 0,4 }; | ||
... | ||
- memset(&y, 0, ...); |
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,7 @@ | ||
int main () { | ||
int x = { 0 }; | ||
int y = { | ||
0, | ||
4 | ||
}; | ||
} |
bcc39cf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to add that a clarification request with the topic “How do I disable formatting for the "+"-side of a rule?” by Ævar Arnfjörð Bjarmason triggered this software adjustment.