Skip to content

Commit

Permalink
Merge branch 'mku/changing_warning_message' into 'master'
Browse files Browse the repository at this point in the history
Replacing warning message by info in the output when gnatpp is executed

Closes #126

See merge request eng/ide/libadalang-tools!242
  • Loading branch information
CKMonika committed Sep 19, 2024
2 parents a698738 + d1f6b7a commit afab009
Show file tree
Hide file tree
Showing 91 changed files with 386 additions and 386 deletions.
6 changes: 3 additions & 3 deletions src/pp-main.adb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ begin
-- Deprecation message to advertise about GNATformat
Utils.Err_Out.Put
("\n\1\n",
"WARNING: GNATpp will be baselined soon. Please switch "
& "to GNATformat, the new Ada code formatter, for future use.");
Utils.Err_Out.Put ("-------\n\n");
"Info: AdaCore provides a new formatter GNATformat, currently in beta. "
& "This will supersede GNATpp when leaving the beta program.");
Utils.Err_Out.Put ("-----\n\n");

-- Override trace settings by parsing the config file
GNATCOLL.Traces.Parse_Config_File;
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/metric/RB16-011/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Foo (I : in out Integer) is
begin
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/CS0037228/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package body Foo is

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Test is
-- Documentation
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/CS0038689/ignore_cmd_gpr/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

Units remaining: 4
package Test_1 is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/CS0039262/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----


package test is
Expand Down
12 changes: 6 additions & 6 deletions testsuite/tests/pp/G905-011/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Gnatpp_Array_Formatting is
Expand All @@ -26,8 +26,8 @@ begin
null;
end Gnatpp_Array_Formatting;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

with Ada.Text_IO;
procedure Gnatpp_Exdentation is
Expand All @@ -53,8 +53,8 @@ begin
end if;
end Gnatpp_Exdentation;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Junk is
begin
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/G913-019/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure TEST is
procedure PROCEDURE_NAME
Expand Down
12 changes: 6 additions & 6 deletions testsuite/tests/pp/MB21-028/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure P is
pragma Warnings (Off);
Expand All @@ -9,8 +9,8 @@ begin
null;
end P;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure P is
pragma Warnings (Off);
Expand All @@ -21,8 +21,8 @@ begin
null;
end P;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package body Q is

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/N218-043/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Directions is

Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/N219-016/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Records is

Expand All @@ -24,8 +24,8 @@ package Records is

end Records;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Records is

Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/N312-029/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Sample_Formatting is

Expand Down Expand Up @@ -39,8 +39,8 @@ begin

end Sample_Formatting;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Sample_Formatting is

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/N428-004/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Ors is
begin
Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/N812-011/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package P with
Pure
Expand All @@ -17,8 +17,8 @@ is

end P;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Q is

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/N827-012/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

with Ada.Characters.Latin_1;

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/O723-016/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

with Toto, Titi;

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/OA07-042/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Align_Test is
Index : Integer;
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/P318-034/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

-- Testing pretty printing of enums with inline documentation
procedure test_main is
Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/P408-012/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Pretty is

Expand Down Expand Up @@ -51,8 +51,8 @@ begin

end Pretty;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Pretty is

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/P523-009/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

pragma Ada_95;
pragma Warnings (Off);
Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/P817-005/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Example_With_Comments is

Expand All @@ -22,8 +22,8 @@ package Example_With_Comments is

end Example_With_Comments;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Example_With_Comments is -- end of line

Expand Down
8 changes: 4 additions & 4 deletions testsuite/tests/pp/Q724-015/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Csc_Channel.Version_Handling is
type T_Version_Handling is limited interface;
Expand All @@ -13,8 +13,8 @@ package Csc_Channel.Version_Handling is
P2 : out Lang.Primitifs.T_Uint) is abstract;
end Csc_Channel.Version_Handling;

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Csc_Channel.Version_Handling is
type T_Version_Handling is limited interface;
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QA14-008/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Left_Hand_Side is
begin
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QA17-028/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

WITH ibusiness_unit.synthetic_target_manager;

Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-006/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Gnatpp_Playground
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-008/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Compact_Array_Type_Declaration
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-010/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Preserve_Existing_Continuation_Lines
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-011/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Named_Aggregate_Affectation
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-012/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Split_Lines_Before_Vertical_Bars
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/QC06-022/P718-013/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

procedure Blank_Lines_Insertion
is
Expand Down
4 changes: 2 additions & 2 deletions testsuite/tests/pp/R713-024/test.out
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

WARNING: GNATpp will be baselined soon. Please switch to GNATformat, the new Ada code formatter, for future use.
-------
Info: AdaCore provides a new formatter GNATformat, currently in beta. This will supersede GNATpp when leaving the beta program.
-----

package Spark_Mode with
SPARK_Mode
Expand Down
Loading

0 comments on commit afab009

Please sign in to comment.