-
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: skip 'E' xrefs (reference to first private entity)
When comparing GNAT's xrefs with libadalang nameres, skip references to the first private entity.
- Loading branch information
Showing
5 changed files
with
34 additions
and
2 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
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,8 @@ | ||
procedure Test is | ||
package P is | ||
private | ||
type I is new Integer; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
== test.adb == | ||
test.adb:1:11 => test.adb:1:11 (LAL: ok) | ||
test.adb:5:8 => test.adb:2:12 (LAL: ok) | ||
test.adb:8:5 => test.adb:1:11 (LAL: ok) | ||
|
||
Stats: | ||
GNAT xrefs have 3 entries | ||
LAL xrefs have: | ||
* 3 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 |