-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gnatformat-issue_53' into 'master'
Unparsing: Add config for PackageRenamingDecl and fix other renaming decls Closes eng/ide/gnatformat#53 See merge request eng/libadalang/libadalang!1718
- Loading branch information
Showing
21 changed files
with
83 additions
and
22 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
4 changes: 2 additions & 2 deletions
4
testsuite/tests/unparsing/exception_decl/long_complete/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Baaaaaaaaaaaaaaaaaaaaar : exception renames | ||
Fooooooooooooooooooooooooooooooooooo | ||
Baaaaaaaaaaaaaaaaaaaaar : exception | ||
renames Fooooooooooooooooooooooooooooooooooo | ||
with | ||
Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz; |
4 changes: 2 additions & 2 deletions
4
testsuite/tests/unparsing/exception_decl/long_no_aspect/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Baaaaaaaaaaaaaaaaaaaaar : exception renames | ||
Foooooooooooooooooooooooooooooooooo; | ||
Baaaaaaaaaaaaaaaaaaaaar : exception | ||
renames Foooooooooooooooooooooooooooooooooo; |
2 changes: 1 addition & 1 deletion
2
testsuite/tests/unparsing/generic_package_renaming_decl/long_with_aspect/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
generic package Foo | ||
renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar | ||
with Baz; | ||
with Baz; |
3 changes: 1 addition & 2 deletions
3
testsuite/tests/unparsing/generic_package_renaming_decl/short_with_aspect/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 |
---|---|---|
@@ -1,2 +1 @@ | ||
generic package Foo renames Bar | ||
with Baz; | ||
generic package Foo renames Bar with Baz; |
2 changes: 1 addition & 1 deletion
2
testsuite/tests/unparsing/generic_package_renaming_decl/short_with_aspect/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
driver: unparser | ||
rule: generic_renaming_decl | ||
description: | | ||
Test the line break before the `with` keyword. | ||
Test that no line break is added before the `with` keyword. |
4 changes: 2 additions & 2 deletions
4
testsuite/tests/unparsing/no_type_object_renaming_decl/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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Fooooooooooooooooooooooooooooooooo renames | ||
Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar; | ||
Fooooooooooooooooooooooooooooooooo | ||
renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar; |
4 changes: 1 addition & 3 deletions
4
testsuite/tests/unparsing/object_decl/everything_long_rename/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 |
---|---|---|
@@ -1,3 +1 @@ | ||
Fooooooooooooooooo : | ||
aliased constant Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa renames Baaaaaaaaaaaaaaaz; | ||
|
||
Fooooooooooooooooo : aliased constant Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa renames Baaaaaaaaaaaaaaaz; |
4 changes: 2 additions & 2 deletions
4
testsuite/tests/unparsing/object_decl/everything_long_rename/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Fooooooooooooooooo : | ||
aliased constant Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa renames | ||
Baaaaaaaaaaaaaaaz; | ||
aliased constant Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
renames Baaaaaaaaaaaaaaaz; |
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 @@ | ||
package Foo renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar; |
2 changes: 2 additions & 0 deletions
2
testsuite/tests/unparsing/package_renaming_decl/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,2 @@ | ||
package Foo | ||
renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar; |
4 changes: 4 additions & 0 deletions
4
testsuite/tests/unparsing/package_renaming_decl/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,4 @@ | ||
driver: unparser | ||
rule: package_renaming_decl | ||
description: | | ||
Test the line break before the `renames` keyword. |
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/package_renaming_decl/long_with_aspect/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 @@ | ||
package Foo renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar with Baz; |
3 changes: 3 additions & 0 deletions
3
testsuite/tests/unparsing/package_renaming_decl/long_with_aspect/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,3 @@ | ||
package Foo | ||
renames Baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar | ||
with Baz; |
4 changes: 4 additions & 0 deletions
4
testsuite/tests/unparsing/package_renaming_decl/long_with_aspect/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: package_renaming_decl | ||
description: | | ||
Test the line break before the `renames` and `with` keywords. |
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/package_renaming_decl/short/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 @@ | ||
package Foo renames Bar; |
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 @@ | ||
package Foo renames Bar; |
4 changes: 4 additions & 0 deletions
4
testsuite/tests/unparsing/package_renaming_decl/short/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: package_renaming_decl | ||
description: | | ||
Test that no line breaks are added. |
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/package_renaming_decl/short_with_aspect/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 @@ | ||
package Foo renames Bar with Baz; |
1 change: 1 addition & 0 deletions
1
testsuite/tests/unparsing/package_renaming_decl/short_with_aspect/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 @@ | ||
package Foo renames Bar with Baz; |
4 changes: 4 additions & 0 deletions
4
testsuite/tests/unparsing/package_renaming_decl/short_with_aspect/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: package_renaming_decl | ||
description: | | ||
Test that no line break is added before the `with` keyword. |