-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mku/enum_rep_clause' into 'master'
Add EnumRepClause config Closes #1363 See merge request eng/libadalang/libadalang!1618
- Loading branch information
Showing
17 changed files
with
1,993 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
591 changes: 591 additions & 0 deletions
591
testsuite/tests/unparsing/enum_rep_clause/everything_long/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/enum_rep_clause/everything_long/input.ada
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 @@ | ||
for VeeeeeeeeeeeeryLoooooooooooongTyyyyyyyyyyyyyyyyypeNaaaaaaaaaaaame use (Aaaaaaaaaaaa => 1, Bbbbbbbbbbb => 5, Ccccccccc => 10, Dddd => 1, E => 5, F => 10); |
7 changes: 7 additions & 0 deletions
7
testsuite/tests/unparsing/enum_rep_clause/everything_long/test.out
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 @@ | ||
for VeeeeeeeeeeeeryLoooooooooooongTyyyyyyyyyyyyyyyyypeNaaaaaaaaaaaame use | ||
(Aaaaaaaaaaaa => 1, | ||
Bbbbbbbbbbb => 5, | ||
Ccccccccc => 10, | ||
Dddd => 1, | ||
E => 5, | ||
F => 10); |
9 changes: 9 additions & 0 deletions
9
testsuite/tests/unparsing/enum_rep_clause/everything_long/test.yaml
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,9 @@ | ||
description: | | ||
This test checks the formatting of an enum representation | ||
clause with long type name and long aggregate. | ||
It is expected the declaration breaks after `use` keyword | ||
and the aggregagte be broken, one element per new line, | ||
and all these new lines be indented. | ||
driver: unparser | ||
rule: aspect_clause |
591 changes: 591 additions & 0 deletions
591
testsuite/tests/unparsing/enum_rep_clause/long_aggregate/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/enum_rep_clause/long_aggregate/input.ada
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 @@ | ||
for T use (Aaaaaaaaaaaa => 1, Bbbbbbbbbbb => 5, Ccccccccc => 10, Dddd => 1, E => 5, F => 10); |
7 changes: 7 additions & 0 deletions
7
testsuite/tests/unparsing/enum_rep_clause/long_aggregate/test.out
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 @@ | ||
for T use | ||
(Aaaaaaaaaaaa => 1, | ||
Bbbbbbbbbbb => 5, | ||
Ccccccccc => 10, | ||
Dddd => 1, | ||
E => 5, | ||
F => 10); |
9 changes: 9 additions & 0 deletions
9
testsuite/tests/unparsing/enum_rep_clause/long_aggregate/test.yaml
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,9 @@ | ||
description: | | ||
This test checks the formatting of an enum representation | ||
clause with long aggregate. | ||
It is expected the declaration breaks after `use` keyword | ||
the aggregate is broken, each line contains one element, | ||
and all these new lines are indented. | ||
driver: unparser | ||
rule: aspect_clause |
357 changes: 357 additions & 0 deletions
357
testsuite/tests/unparsing/enum_rep_clause/long_type/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
for VeeeeeeeeeeeeeeeeeeryLoooooooooooongTyyyyyyyyyyyyyyyyyypeNaaaaaaaaaaaame use (A => 1, B => 5, C => 10); |
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,2 @@ | ||
for VeeeeeeeeeeeeeeeeeeryLoooooooooooongTyyyyyyyyyyyyyyyyyypeNaaaaaaaaaaaame use | ||
(A => 1, B => 5, C => 10); |
8 changes: 8 additions & 0 deletions
8
testsuite/tests/unparsing/enum_rep_clause/long_type/test.yaml
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,8 @@ | ||
description: | | ||
This test checks the formatting of an enum representation | ||
clause with a long type name. | ||
It is expected the declaration breaks after the `use` keyword | ||
and the new line be indented. | ||
driver: unparser | ||
rule: aspect_clause |
357 changes: 357 additions & 0 deletions
357
testsuite/tests/unparsing/enum_rep_clause/short/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
for r use (A => 1, B => 5, C => 10); |
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 @@ | ||
for r use (A => 1, B => 5, C => 10); |
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 @@ | ||
description: | | ||
This test checks the formatting of an enum representation | ||
clause. | ||
It is expected the declaration stays on a single line. | ||
driver: unparser | ||
rule: aspect_clause |