66-- This package defines options that are supposed to be of a common interest
77-- for all the tools.
88
9- with Ada.Command_Line ; use Ada.Command_Line;
10- with Ada.Directories ; use Ada.Directories;
119with Ada.Environment_Variables ;
1210with Ada.Strings.Unbounded ; use Ada.Strings.Unbounded;
1311
@@ -33,9 +31,6 @@ package Lkql_Checker.Options is
3331 Version_String : constant String :=
3432 Lkql_Checker_Version & " (" & Date & " )" ;
3533
36- Executable : constant String := Base_Name (Command_Name);
37- -- Name of the current executable (e.g. "gnatcheck" or "gnatkp")
38-
3934 Custom_Worker_Var : constant String := " GNATCHECK_WORKER" ;
4035 -- The name of the environment variable used to define a custom worker
4136 -- executable.
@@ -69,9 +64,6 @@ package Lkql_Checker.Options is
6964 -- tool (includes both wrong parameters and wrong combinations of correct
7065 -- parameters).
7166
72- Mode : Lkql_Checker_Mode := Gnatcheck_Mode;
73- -- Set the mode of the driver, either GNATcheck or GNATkp modes.
74-
7567 Legacy : Boolean := False;
7668 -- If True, run in legacy mode, with no support for additional rule files.
7769
@@ -704,10 +696,12 @@ package Lkql_Checker.Options is
704696 -- the specified ``Default_Name``.
705697
706698 function Text_Report_File_Path return String
707- is (Resolve_Report_File (Text_Output.Get, Executable & " .out" ));
699+ is (Resolve_Report_File
700+ (Text_Output.Get, Lkql_Checker_Mode_Image & " .out" ));
708701
709702 function XML_Report_File_Path return String
710- is (Resolve_Report_File (XML_Output.Get, Executable & " .xml" ));
703+ is (Resolve_Report_File
704+ (XML_Output.Get, Lkql_Checker_Mode_Image & " .xml" ));
711705 end Arg ;
712706
713707 -- ------------------------
0 commit comments