-
Notifications
You must be signed in to change notification settings - Fork 6
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/source_fetch_cleanup' into 'master'
Enhance the GNATcheck performance when running without a project file Closes #312 See merge request eng/libadalang/langkit-query-language!276
- Loading branch information
Showing
7 changed files
with
62 additions
and
186 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
4 changes: 4 additions & 0 deletions
4
testsuite/tests/gnatcheck_errors/missing_source/src/proc2.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,4 @@ | ||
procedure Proc2 is | ||
begin | ||
null; | ||
end Proc2; |
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 @@ | ||
With a non-existing source file | ||
=============================== | ||
|
||
gnatcheck: not_a_file.adb not found | ||
gnatcheck: No existing file to process | ||
>>>program returned status code 3 | ||
|
||
With a file not in the project closure | ||
====================================== | ||
|
||
gnatcheck: src/proc2.adb is not in the analysed project closure (Default) | ||
gnatcheck: No existing file to process | ||
>>>program returned status code 3 |
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,12 @@ | ||
driver: gnatcheck | ||
description: Test the behavior when providing a invalid source | ||
format: brief | ||
rules: | ||
- +RGoto_Statements | ||
tests: | ||
- label: With a non-existing source file | ||
input_sources: | ||
- not_a_file.adb | ||
- label: With a file not in the project closure | ||
input_sources: | ||
- src/proc2.adb |