Skip to content

Commit 642a927

Browse files
Fix coding standard issues in CodePeer integration
Fixes eng/codepeer/codepeer#513
1 parent 47dff4e commit 642a927

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

code_analysis/bt/message_kinds.adb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ package body Message_Kinds is
9797
package CWE_Id_Sets is new
9898
Ada.Containers.Ordered_Sets (Positive);
9999
Result : CWE_Id_Sets.Set;
100+
procedure Include_Corresponding_CWE
101+
(Kind : Message_Kinds.Message_Subkind);
100102

101103
procedure Include_Corresponding_CWE
102104
(Kind : Message_Kinds.Message_Subkind)
@@ -357,7 +359,7 @@ package body Message_Kinds is
357359
if Offset = 0 then
358360
-- exact match with power of 2
359361
return "";
360-
elsif (Offset < 0) xor Is_Negated then
362+
elsif Offset < 0 xor Is_Negated then
361363
-- Precede with '-'
362364
return '-' & Image (abs (Offset));
363365
else
@@ -387,6 +389,9 @@ package body Message_Kinds is
387389
Head : String renames S (I .. J - 3);
388390
-- All but last two digits of number
389391

392+
function Compute_Offset
393+
(Ref : Natural) return Integer;
394+
390395
function Compute_Offset
391396
(Ref : Natural) return Integer
392397
-- For a n bits integer boundary, Ref must be

0 commit comments

Comments
 (0)