-
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.
Unparsing: add config for GenericSubpDecl
- Loading branch information
1 parent
9a16f76
commit f13511b
Showing
9 changed files
with
1,524 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
Empty file.
6 changes: 6 additions & 0 deletions
6
testsuite/tests/unparsing/generic_subp_decl/empty_formal_part/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,6 @@ | ||
generic | ||
function Perform_Comparison_Check | ||
(Comparing_Value : Foo_Bar_Baz; | ||
Rule_Value : Foo_Bar_Baz; | ||
Logic_Operator : Unbounded_String) | ||
return Boolean; |
5 changes: 5 additions & 0 deletions
5
testsuite/tests/unparsing/generic_subp_decl/empty_formal_part/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,5 @@ | ||
generic | ||
function Perform_Comparison_Check | ||
(Comparing_Value : Foo_Bar_Baz; | ||
Rule_Value : Foo_Bar_Baz; | ||
Logic_Operator : Unbounded_String) return Boolean; |
11 changes: 11 additions & 0 deletions
11
testsuite/tests/unparsing/generic_subp_decl/empty_formal_part/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,11 @@ | ||
driver: unparser | ||
rule: generic_decl | ||
description: | | ||
Test that there is no line break between the keywords `generic` and | ||
`function`. | ||
control: | ||
- [ | ||
XFAIL, | ||
"True", | ||
"https://gitlab.adacore-it.com/eng/libadalang/langkit/-/issues/760", | ||
] |
1,372 changes: 1,372 additions & 0 deletions
1,372
testsuite/tests/unparsing/generic_subp_decl/non_empty_formal_part/doc-baseline.json
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
testsuite/tests/unparsing/generic_subp_decl/non_empty_formal_part/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,8 @@ | ||
generic | ||
type Foo_Bar_Baz is private; | ||
with function ">" (Left_Left_Left_Left_Left : Foo_Bar_Baz; Right_Right_Right_Right_Right : Foo_Bar_Baz) return Boolean is <>; | ||
function Perform_Comparison_Check | ||
(Comparing_Value : Foo_Bar_Baz; | ||
Rule_Value : Foo_Bar_Baz; | ||
Logic_Operator : Unbounded_String) | ||
return Boolean; |
10 changes: 10 additions & 0 deletions
10
testsuite/tests/unparsing/generic_subp_decl/non_empty_formal_part/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,10 @@ | ||
generic | ||
type Foo_Bar_Baz is private; | ||
with | ||
function ">" | ||
(Left_Left_Left_Left_Left : Foo_Bar_Baz; | ||
Right_Right_Right_Right_Right : Foo_Bar_Baz) return Boolean is <>; | ||
function Perform_Comparison_Check | ||
(Comparing_Value : Foo_Bar_Baz; | ||
Rule_Value : Foo_Bar_Baz; | ||
Logic_Operator : Unbounded_String) return Boolean; |
4 changes: 4 additions & 0 deletions
4
testsuite/tests/unparsing/generic_subp_decl/non_empty_formal_part/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,4 @@ | ||
driver: unparser | ||
rule: generic_decl | ||
description: | | ||
Test that each generic formal declaration is in its own line. |