@@ -18,6 +18,10 @@ package Gnatcheck.Output is
1818 Custom_XML_Report_File : Boolean := False;
1919 -- Undicate if custom name is specified for text or XML output file
2020
21+ Error_From_Warning : Boolean;
22+ -- Whether a warning message has been emitted while "warnings as errors"
23+ -- mode is enabled. This ensure the return code of GNATcheck is not 0.
24+
2125 procedure Print_Version_Info (Released_At : Positive);
2226 -- Prints into Stderr the tool version information in the following format:
2327 --
@@ -43,39 +47,19 @@ package Gnatcheck.Output is
4347 procedure Error_No_Tool_Name (Message : String);
4448 -- Sends into Stderr the error message with no tool name prefix
4549
46- procedure Error_In_Tty (Message : String);
47- -- Same as ``Error`` but send the message only if Stderr is a TTY. Also,
48- -- ``Message`` is not added to the stderr log file.
50+ procedure Warning (Message : String);
51+ -- Same as ``Error``
52+
53+ procedure Info (Message : String);
54+ -- Sends Message into Stderr (with no tool name prefix).
4955
50- procedure SLOC_Error
51- (Message : String;
52- SLOC : String);
53- -- Sends to Stderr the error message in the following format:
54- -- 'SLOC:Tool_Name:Message', where SLOC is the GNAT-style source location.
56+ procedure Info_No_EOL (Message : String);
57+ -- The same as ``Info``, but does not output a (platform-specific) EOL
58+ -- character(s) after ``Message``.
5559
56- procedure Warning (Message : String);
57- -- Same as Error, but do nothing if Warning_Mode = Quiet.
58-
59- procedure Info
60- (Message : String;
61- Line_Len : Natural := 0 ;
62- Spacing : Natural := 0 );
63- -- Sends Message as a separate line(s) into Stderr (with no tool name
64- -- prefix). If Line_Len is set to some positive value, it is treated as a
65- -- maximal length of the text to be placed into one output line, and if the
66- -- length of Message exceeds Line_Len, this procedure tries to split
67- -- Message treating spaces as word separators and prints the rest of the
68- -- Message on the next line(s). Each continuation line starts from Spacing
69- -- number of space characters. Message can be split only on borders of
70- -- words.
71-
72- procedure Info_No_EOL
73- (Message : String;
74- Line_Len : Natural := 0 ;
75- Spacing : Natural := 0 );
76- -- The same as Info, but does not "close" the last line being printed out,
77- -- that is, the last line does not contain a (platform-specific) EOL
78- -- character(s).
60+ procedure Info_In_Tty (Message : String);
61+ -- Same as ``Info`` but send the message only if Stderr is a TTY. Also,
62+ -- ``Message`` is not added to the current ``Log_File``.
7963
8064 Indent_String : constant String := " " ;
8165 -- Used as indentation element in various output
0 commit comments