-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt GNATpp and GNATmetric to the new ElsePart node
For GNATpp: Update the IfStmt and SelectStmt templates, replacing the template for `f_else_stmt` by a required ElsePart node. Add template for the ElsePart node. For GNATmetric: Replace F_Else_Stmts and F_Abort_Stmts by F_Else_Part.F_Stmts and F_Then_Abort_Part.F_Stmts respectively.
- Loading branch information
1 parent
1014b10
commit 867af75
Showing
6 changed files
with
40 additions
and
19 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
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 A is | ||
begin | ||
select when T => null; then abort null; end select; | ||
select when T => null; then abort end select; | ||
end A; |
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,16 @@ | ||
|
||
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program. | ||
----- | ||
|
||
procedure A is | ||
begin | ||
select when T => | ||
null; | ||
then abort | ||
null; | ||
end select; | ||
select when T => | ||
null; | ||
then abort | ||
end select; | ||
end A; |
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 @@ | ||
gnatpp --pipe a.adb |
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 @@ | ||
description: gnatpp test | ||
driver: shell_script |