Skip to content

Commit 2edcc9e

Browse files
committed
Rename 'Process_Rule_File' function to 'Process_Legacy_Rule_File'
1 parent 7c60946 commit 2edcc9e

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

lkql_checker/src/gnatcheck-projects.adb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ package body Gnatcheck.Projects is
10801080
for O of Rule_Options loop
10811081
case O.Kind is
10821082
when File =>
1083-
Process_Rule_File (To_String (O.Value));
1083+
Process_Legacy_Rule_File (To_String (O.Value));
10841084

10851085
when Legacy_Option =>
10861086
Process_Legacy_Rule_Option
@@ -1094,7 +1094,8 @@ package body Gnatcheck.Projects is
10941094
-- Add_Legacy_Rule_Option --
10951095
----------------------------
10961096

1097-
procedure Add_Legacy_Rule_Option (Opt : String; Prepend : Boolean := False) is
1097+
procedure Add_Legacy_Rule_Option (Opt : String; Prepend : Boolean := False)
1098+
is
10981099
use Ada.Strings.Unbounded;
10991100

11001101
Opt_Rec : constant Option_Record :=

lkql_checker/src/gnatcheck-rules-rule_table.adb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ package body Gnatcheck.Rules.Rule_Table is
369369
return All_Rules.Contains (Rule) or else Is_Compiler_Rule (Rule);
370370
end Present;
371371

372-
-----------------------
373-
-- Process_Rule_File --
374-
-----------------------
372+
------------------------------
373+
-- Process_Legacy_Rule_File --
374+
------------------------------
375375

376-
procedure Process_Rule_File (RF_Name : String) is
376+
procedure Process_Legacy_Rule_File (RF_Name : String) is
377377
RF : File_Type;
378378

379379
Rule_Start_Line : Natural := 1;
@@ -566,7 +566,8 @@ package body Gnatcheck.Rules.Rule_Table is
566566
else
567567
if Is_Regular_File (Rule_Buf (1 .. Rule_Len))
568568
then
569-
Process_Rule_File (Rule_Buf (1 .. Rule_Len));
569+
Process_Legacy_Rule_File
570+
(Rule_Buf (1 .. Rule_Len));
570571
else
571572
Error
572573
("can not locate rule file "
@@ -695,7 +696,7 @@ package body Gnatcheck.Rules.Rule_Table is
695696
end Set_File_Name;
696697

697698
begin
698-
-- Process_Rule_File
699+
-- Process_Legacy_Rule_File
699700

700701
if not Is_Regular_File (Rule_File_Name) then
701702
Error ("can not locate rule file " & Rule_File_Name);
@@ -757,7 +758,7 @@ package body Gnatcheck.Rules.Rule_Table is
757758
new String'(Get_Rule_File_Name (Rule_Buf (1 .. Rule_Len)));
758759

759760
if Is_Regular_File (Include_RF_Name.all) then
760-
Process_Rule_File (Include_RF_Name.all);
761+
Process_Legacy_Rule_File (Include_RF_Name.all);
761762
else
762763
Error
763764
("can not locate rule file "
@@ -799,7 +800,7 @@ package body Gnatcheck.Rules.Rule_Table is
799800

800801
-- Exception info will be generated in main driver
801802
raise;
802-
end Process_Rule_File;
803+
end Process_Legacy_Rule_File;
803804

804805
----------------------------
805806
-- Process_LKQL_Rule_File --

lkql_checker/src/gnatcheck-rules-rule_table.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ package Gnatcheck.Rules.Rule_Table is
4949
-- Defined_At should be set to an empty string when processing the rule
5050
-- option from a command line, or to the short name of the rule file.
5151

52-
procedure Process_Rule_File (RF_Name : String);
52+
procedure Process_Legacy_Rule_File (RF_Name : String);
5353
-- Processes a set of rule options stored in the rule configuration file.
5454
-- RF_Name is the name of this rule file.
5555
--

0 commit comments

Comments
 (0)