-
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.
gnat_compare: body name/end_name refer to the specification's name
GNAT xref for a body name/endname points to the defining name of the corresponding spec (if any), while libadalang points to the defining name of the body.
- Loading branch information
Showing
16 changed files
with
156 additions
and
25 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
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ procedure Test is | |
private | ||
type I is new Integer; | ||
end P; | ||
package body P is | ||
end P; | ||
begin | ||
null; | ||
end Test; |
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,2 @@ | ||
package body Pkg is | ||
end Pkg; |
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 Pkg is | ||
end Pkg; | ||
pragma Elaborate_Body (Pkg); |
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 @@ | ||
project Prj is | ||
for Source_Dirs use ("."); | ||
for Main use ("test.adb"); | ||
end Prj; |
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 @@ | ||
with Pkg; | ||
|
||
procedure Test is | ||
begin | ||
null; | ||
end Test; |
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,19 @@ | ||
== pkg.adb == | ||
pkg.adb:1:14 => pkg.ads:1:9 (LAL: ok) | ||
pkg.adb:2:5 => pkg.ads:1:9 (LAL: ok) | ||
== pkg.ads == | ||
pkg.ads:2:5 => pkg.ads:1:9 (LAL: ok) | ||
pkg.ads:3:24 => pkg.ads:1:9 (LAL: ok) | ||
== test.adb == | ||
test.adb:1:6 => pkg.ads:1:9 (LAL: ok) | ||
test.adb:3:11 => test.adb:3:11 (LAL: ok) | ||
test.adb:6:5 => test.adb:3:11 (LAL: ok) | ||
|
||
Stats: | ||
GNAT xrefs have 7 entries | ||
LAL xrefs have: | ||
* 7 OK entries (100.00%) | ||
* 0 DIFFERENT entries (0.00%) | ||
* 0 ERROR entries (0.00%) | ||
* 0 MISSING entries (0.00%) | ||
* 0 ADDITIONAL entries (0.00%) |
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 @@ | ||
driver: gnat-compare | ||
project_file: 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,4 @@ | ||
project Prj is | ||
for Source_Dirs use ("."); | ||
for Main use ("test.adb"); | ||
end Prj; |
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,29 @@ | ||
procedure Test is | ||
package P is | ||
type T; | ||
type U is limited private; | ||
|
||
task type T is | ||
end T; -- refers to T line 6 | ||
private | ||
task type U is | ||
end U; -- refers to U line 4 | ||
end P; | ||
|
||
package body P is | ||
task body T is -- refers to T line 6 | ||
begin | ||
null; | ||
end T; -- refers to T line 6 | ||
|
||
task body U is -- refers to U line 4 | ||
begin | ||
null; | ||
end U; -- refers to U line 4 | ||
end P; | ||
use P; | ||
|
||
My_T : T; -- refers to T line 3 | ||
begin | ||
null; | ||
end; |
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,22 @@ | ||
== test.adb == | ||
test.adb:1:11 => test.adb:1:11 (LAL: ok) | ||
test.adb:7:11 => test.adb:6:17 (LAL: ok) | ||
test.adb:10:11 => test.adb:4:12 (LAL: ok) | ||
test.adb:11:8 => test.adb:2:12 (LAL: ok) | ||
test.adb:13:17 => test.adb:2:12 (LAL: ok) | ||
test.adb:14:17 => test.adb:6:17 (LAL: ok) | ||
test.adb:17:11 => test.adb:6:17 (LAL: ok) | ||
test.adb:19:17 => test.adb:4:12 (LAL: ok) | ||
test.adb:22:11 => test.adb:4:12 (LAL: ok) | ||
test.adb:23:8 => test.adb:2:12 (LAL: ok) | ||
test.adb:24:8 => test.adb:2:12 (LAL: ok) | ||
test.adb:26:11 => test.adb:3:12 (LAL: ok) | ||
|
||
Stats: | ||
GNAT xrefs have 12 entries | ||
LAL xrefs have: | ||
* 12 OK entries (100.00%) | ||
* 0 DIFFERENT entries (0.00%) | ||
* 0 ERROR entries (0.00%) | ||
* 0 MISSING entries (0.00%) | ||
* 0 ADDITIONAL entries (0.00%) |
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 @@ | ||
driver: gnat-compare | ||
project_file: prj.gpr |