@@ -15,22 +15,22 @@ with GNAT.Regpat; use GNAT.Regpat;
1515with GNAT.Strings ;
1616with GNAT.String_Split ;
1717
18- with Gnatcheck .Diagnoses ; use Gnatcheck .Diagnoses;
19- with Gnatcheck .Ids ; use Gnatcheck .Ids;
20- with Gnatcheck .Options ; use Gnatcheck .Options;
21- with Gnatcheck .Output ; use Gnatcheck .Output;
22- with Gnatcheck .Projects ; use Gnatcheck .Projects;
23- with Gnatcheck .Projects.Aggregate ; use Gnatcheck .Projects.Aggregate;
24- with Gnatcheck .Rules.Rule_Table ; use Gnatcheck .Rules.Rule_Table;
25- with Gnatcheck .Source_Table ; use Gnatcheck .Source_Table;
26- with Gnatcheck .String_Utilities ; use Gnatcheck .String_Utilities;
18+ with Lkql_Checker .Diagnoses ; use Lkql_Checker .Diagnoses;
19+ with Lkql_Checker .Ids ; use Lkql_Checker .Ids;
20+ with Lkql_Checker .Options ; use Lkql_Checker .Options;
21+ with Lkql_Checker .Output ; use Lkql_Checker .Output;
22+ with Lkql_Checker .Projects ; use Lkql_Checker .Projects;
23+ with Lkql_Checker .Projects.Aggregate ; use Lkql_Checker .Projects.Aggregate;
24+ with Lkql_Checker .Rules.Rule_Table ; use Lkql_Checker .Rules.Rule_Table;
25+ with Lkql_Checker .Source_Table ; use Lkql_Checker .Source_Table;
26+ with Lkql_Checker .String_Utilities ; use Lkql_Checker .String_Utilities;
2727
2828with GNATCOLL.JSON ; use GNATCOLL.JSON;
2929with GNATCOLL.VFS ; use GNATCOLL.VFS;
3030
3131with Langkit_Support.Slocs ; use Langkit_Support.Slocs;
3232
33- package body Gnatcheck .Compiler is
33+ package body Lkql_Checker .Compiler is
3434
3535 use Rident;
3636
@@ -60,7 +60,7 @@ package body Gnatcheck.Compiler is
6060 -- * Remove warning and style markers for Warning, Style, Restriction
6161 -- messages.
6262 --
63- -- * If Gnatcheck .Options.Mapping_Mode is ON, annotates the message by
63+ -- * If Lkql_Checker .Options.Mapping_Mode is ON, annotates the message by
6464 -- adding the compiler check (if for a warning message '.d' is specified,
6565 -- the trailing part that indicates the warning message that causes this
6666 -- warning is removed from the diagnosis, and the corresponding warning
@@ -70,7 +70,7 @@ package body Gnatcheck.Compiler is
7070 function Annotation
7171 (Message_Kind : Message_Kinds; Parameter : String) return String;
7272 -- Returns annotation to be added to the compiler diagnostic message if
73- -- Gnatcheck .Options.Mapping_Mode is ON. Parameter, if non-empty, is the
73+ -- Lkql_Checker .Options.Mapping_Mode is ON. Parameter, if non-empty, is the
7474 -- parameter of '-gnatw/y' option that causes the diagnosis
7575
7676 function Get_Rule_Id (Check : Message_Kinds) return Rule_Id;
@@ -263,7 +263,7 @@ package body Gnatcheck.Compiler is
263263 Sep_Idx : Natural := 0 ;
264264
265265 begin
266- Last_Idx := Path_Index (Result, Gnatcheck_Config_File .all );
266+ Last_Idx := Path_Index (Result, Checker_Config_File .all );
267267
268268 if Last_Idx = 0 then
269269 Last_Idx := Result'Last;
@@ -460,7 +460,7 @@ package body Gnatcheck.Compiler is
460460 then To_Lower (Rule_Name)
461461 else To_Lower (Instance_Name));
462462 Store_Diagnosis
463- (Full_File_Name => Gnatcheck .Source_Table.File_Name (SF),
463+ (Full_File_Name => Lkql_Checker .Source_Table.File_Name (SF),
464464 Message =>
465465 Msg (Msg_Start + 7 .. Last - 2 ) & Instance.Annotate_Diag,
466466 Sloc => Sloc,
@@ -496,7 +496,7 @@ package body Gnatcheck.Compiler is
496496 Message_Kind := Restriction;
497497 elsif Msg (Msg_Start + 9 .. Msg_Start + 19 ) = " cannot find" then
498498 Report_Missing_File
499- (Gnatcheck .Source_Table.File_Name (SF),
499+ (Lkql_Checker .Source_Table.File_Name (SF),
500500 Msg (Msg_Start + 21 .. Msg_End));
501501 return ;
502502 else
@@ -514,15 +514,15 @@ package body Gnatcheck.Compiler is
514514
515515 -- Skip restriction message not coming from the GNATcheck config file
516516 if Message_Kind = Restriction
517- and then Path_Index (Msg, Gnatcheck_Config_File .all ) = 0
517+ and then Path_Index (Msg, Checker_Config_File .all ) = 0
518518 then
519519 return ;
520520 end if ;
521521
522522 -- Use File_Name to always use the same filename (including proper
523523 -- casing for case insensitive systems).
524524 Store_Diagnosis
525- (Full_File_Name => Gnatcheck .Source_Table.File_Name (SF),
525+ (Full_File_Name => Lkql_Checker .Source_Table.File_Name (SF),
526526 Sloc => Sloc,
527527 Message =>
528528 Adjust_Message (Msg (Msg_Start .. Msg_End), Message_Kind),
@@ -804,7 +804,7 @@ package body Gnatcheck.Compiler is
804804
805805 declare
806806 Config_File : constant Virtual_File :=
807- Create (+Gnatcheck_Config_File .all );
807+ Create (+Checker_Config_File .all );
808808 File : Writable_File;
809809 Old_Contents : GNAT.Strings.String_Access;
810810 New_Contents : constant String := To_String (Contents);
@@ -1717,11 +1717,11 @@ package body Gnatcheck.Compiler is
17171717 end if ;
17181718 end Set_Compiler_Checks ;
17191719
1720- -- --------------------------
1721- -- Spawn_Gnatcheck_Worker --
1722- -- --------------------------
1720+ -- ------------------------
1721+ -- Spawn_Checker_Worker --
1722+ -- ------------------------
17231723
1724- function Spawn_Gnatcheck_Worker
1724+ function Spawn_Checker_Worker
17251725 (Rule_File : String;
17261726 Msg_File : String;
17271727 Source_File : String;
@@ -1732,8 +1732,8 @@ package body Gnatcheck.Compiler is
17321732 Pid : Process_Id;
17331733 Split_Command : constant Slice_Set := Create (Worker_Name, " " );
17341734 Worker : String_Access := null ;
1735- Prj : constant String := Gnatcheck_Prj .Source_Prj;
1736- CGPR : constant String := Gnatcheck_Prj .Source_CGPR;
1735+ Prj : constant String := Checker_Prj .Source_Prj;
1736+ CGPR : constant String := Checker_Prj .Source_CGPR;
17371737 Args : Argument_List (1 .. 128 );
17381738 Num_Args : Integer := 0 ;
17391739
@@ -1773,15 +1773,15 @@ package body Gnatcheck.Compiler is
17731773 Num_Args := @ + 1 ;
17741774 Args (Num_Args) := new String'(" --ignore-project-switches" );
17751775 end if ;
1776- elsif Gnatcheck_Prj .Tree.Is_Defined
1777- and then Gnatcheck_Prj .Tree.Root_Project.Path_Name.Exists
1776+ elsif Checker_Prj .Tree.Is_Defined
1777+ and then Checker_Prj .Tree.Root_Project.Path_Name.Exists
17781778 then
17791779 -- In case Prj has not been explicitly set, spawn the project option
17801780 -- with the default project file used by gpr.
17811781 Num_Args := @ + 1 ;
17821782 Args (Num_Args) :=
17831783 new String'
1784- (" -P" & Gnatcheck_Prj .Tree.Root_Project.Path_Name.String_Value);
1784+ (" -P" & Checker_Prj .Tree.Root_Project.Path_Name.String_Value);
17851785 end if ;
17861786
17871787 if Arg.Aggregated_Project then
@@ -1855,7 +1855,7 @@ package body Gnatcheck.Compiler is
18551855 end loop ;
18561856
18571857 return Pid;
1858- end Spawn_Gnatcheck_Worker ;
1858+ end Spawn_Checker_Worker ;
18591859
18601860 -- ---------------------------------
18611861 -- Spawn_LKQL_Rule_Config_Parser --
@@ -1927,7 +1927,7 @@ package body Gnatcheck.Compiler is
19271927
19281928 Pid : Process_Id;
19291929 GPRbuild : String_Access := Locate_Exec_On_Path (GPRbuild_Exec);
1930- Prj : constant String := Gnatcheck_Prj .Source_Prj;
1930+ Prj : constant String := Checker_Prj .Source_Prj;
19311931 Last_Source : constant SF_Id := Last_Argument_Source;
19321932 Args : Argument_List (1 .. 128 + Integer (Last_Source));
19331933 Num_Args : Integer := 0 ;
@@ -2003,7 +2003,7 @@ package body Gnatcheck.Compiler is
20032003 end loop ;
20042004
20052005 if Analyze_Compiler_Output then
2006- Add_Arg (" -gnatec=" & Gnatcheck_Config_File .all );
2006+ Add_Arg (" -gnatec=" & Checker_Config_File .all );
20072007 Add_Arg (" -gnatcU" );
20082008 Add_Arg (" -gnatwnA.d" );
20092009
@@ -2172,4 +2172,4 @@ package body Gnatcheck.Compiler is
21722172 XML_Report (" </rule>" , Indent_Level);
21732173 end XML_Print_Active_Restrictions ;
21742174
2175- end Gnatcheck .Compiler ;
2175+ end Lkql_Checker .Compiler ;
0 commit comments