-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/133' into 'master'
Rule 'unassigned_out_parameters': also check the subp's decl part. Closes #133 See merge request eng/libadalang/langkit-query-language!220
- Loading branch information
Showing
7 changed files
with
70 additions
and
30 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
2 changes: 2 additions & 0 deletions
2
testsuite/tests/checks/unassigned_out_params_nested_subp/prj.gpr
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 @@ | ||
project Prj is | ||
end Prj; |
25 changes: 25 additions & 0 deletions
25
testsuite/tests/checks/unassigned_out_params_nested_subp/test.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,25 @@ | ||
procedure Test is | ||
procedure P | ||
(A : out Integer; -- NOFLAG | ||
B : out Integer -- NOFLAG | ||
) | ||
is | ||
procedure Init_A is | ||
begin | ||
A := 2; | ||
end Init_A; | ||
begin | ||
Init_A; | ||
|
||
declare | ||
procedure Init_B is | ||
begin | ||
B := 2; | ||
end Init_B; | ||
begin | ||
Init_B; | ||
end; | ||
end P; | ||
begin | ||
null; | ||
end Test; |
Empty file.
4 changes: 4 additions & 0 deletions
4
testsuite/tests/checks/unassigned_out_params_nested_subp/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: 'checker' | ||
rule_name: 'Unassigned_OUT_Parameters' | ||
project: 'prj.gpr' | ||
|