-
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 'issue_1329' into 'master'
Unparsing: add configuration for NullSubpDecl Closes #1329 See merge request eng/libadalang/libadalang!1598
- Loading branch information
Showing
13 changed files
with
2,651 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
835 changes: 835 additions & 0 deletions
835
testsuite/tests/unparsing/null_subp_decl/long/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,5 @@ | ||
procedure Foo | ||
(AAAAAAAAAAAA : Bar; | ||
BBBBBBBBBBBB : Baz; | ||
CCCCCCCCCCCC : Qux; | ||
DDDDDDDDDDDD : Corge) is null; |
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 @@ | ||
procedure Foo | ||
(AAAAAAAAAAAA : Bar; | ||
BBBBBBBBBBBB : Baz; | ||
CCCCCCCCCCCC : Qux; | ||
DDDDDDDDDDDD : Corge) | ||
is null; |
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,5 @@ | ||
driver: unparser | ||
rule: null_subp_decl | ||
description: | | ||
Test that a line break is added before the `is` keyword and that it has the | ||
same indentation as the `function` keyword. |
835 changes: 835 additions & 0 deletions
835
testsuite/tests/unparsing/null_subp_decl/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 @@ | ||
procedure Foo(A:Bar;B:Baz;C:Qux;D:Corge)is null; |
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 @@ | ||
procedure Foo (A : Bar; B : Baz; C : Qux; D : Corge) is null; |
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,4 @@ | ||
driver: unparser | ||
rule: null_subp_decl | ||
description: | | ||
Test that no line break are added. |
913 changes: 913 additions & 0 deletions
913
testsuite/tests/unparsing/null_subp_decl/short_with_aspects/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/null_subp_decl/short_with_aspects/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 @@ | ||
procedure Foo (A : Bar; B : Baz; C : Qux; D : Corge) is null with Garplyyyyyyy; |
2 changes: 2 additions & 0 deletions
2
testsuite/tests/unparsing/null_subp_decl/short_with_aspects/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,2 @@ | ||
procedure Foo (A : Bar; B : Baz; C : Qux; D : Corge) is null | ||
with Garplyyyyyyy; |
5 changes: 5 additions & 0 deletions
5
testsuite/tests/unparsing/null_subp_decl/short_with_aspects/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,5 @@ | ||
driver: unparser | ||
rule: null_subp_decl | ||
description: | | ||
Test that a line break is added before the `with` keyword and that it has the | ||
same indentation as the `function` keyword. |