-
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.
Merge branch 'cherry-pick-133348be' into '25.1'
Merge branch 'issue_202' into 'master' See merge request eng/ide/libadalang-tools!277
- Loading branch information
Showing
10 changed files
with
115 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
procedure Foo (I : in out Integer) is | ||
begin | ||
if I > 0 then | ||
goto Fin; | ||
#if DEBUG then | ||
if I < 10 then | ||
#else | ||
if I < 20 then | ||
#end if; | ||
goto Fin; | ||
end if; | ||
end if; | ||
<<Fin>> | ||
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,7 @@ | ||
project P is | ||
for Object_Dir use "obj"; | ||
for Source_Dirs use ("."); | ||
package Compiler is | ||
for Switches ("Ada") use ("-gnateDDEBUG"); | ||
end Compiler; | ||
end P; |
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,28 @@ | ||
Line metrics summed over 1 units | ||
all lines : 14 | ||
code lines : 10 | ||
comment lines : 0 | ||
end-of-line comments : 0 | ||
comment percentage : 0.00 | ||
blank lines : 4 | ||
|
||
Average lines in body: 10.00 | ||
|
||
Element metrics summed over 1 units | ||
all statements : 4 | ||
all declarations : 2 | ||
logical SLOC : 6 | ||
|
||
1 public subprograms in 1 units | ||
|
||
1 subprogram bodies in 1 units | ||
|
||
Average cyclomatic complexity: 3.00 | ||
|
||
Coupling metrics: | ||
================= | ||
Unit Foo (foo.adb) | ||
control fan-out coupling : 0 | ||
control fan-in coupling : 0 | ||
unit fan-out coupling : 0 | ||
unit fan-in coupling : 0 |
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 @@ | ||
gnatmetric --short-file-names -P p.gpr foo.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 @@ | ||
description: | ||
gnatmetric test | ||
|
||
driver: shell_script |
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