Skip to content

Commit 6812489

Browse files
Merge branch 'topic/cp_#513' into 'master'
Fix copyright year Closes eng/codepeer/codepeer#513 See merge request eng/ide/gnatstudio!116
2 parents dc130c4 + 642a927 commit 6812489

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

code_analysis/bt/bt-xml-reader.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/bt-xml-reader.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/bt-xml.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/bt-xml.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/bt.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/bt.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

code_analysis/bt/message_kinds.adb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2013-2022, AdaCore --
4+
-- Copyright (C) 2013-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -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

code_analysis/bt/message_kinds.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- C O D E P E E R --
33
-- --
4-
-- Copyright (C) 2008-2022, AdaCore --
4+
-- Copyright (C) 2008-2023, AdaCore --
55
-- --
66
-- This is free software; you can redistribute it and/or modify it under --
77
-- terms of the GNU General Public License as published by the Free Soft- --

0 commit comments

Comments
 (0)