]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix indentation in generated AST construction functions
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 6 Sep 2021 11:30:43 +0000 (13:30 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Oct 2021 08:45:12 +0000 (08:45 +0000)
gcc/ada/

* gen_il-gen.adb (Put_Make_Spec): Don't emit the LF character in
the middle of a string, because the Put routine won't indent it
properly.

gcc/ada/gen_il-gen.adb

index 9983e1052db4a6807a75f016286704e993323d48..e786251fb3082bb96cba5dd0928b55b571f4ca35 100644 (file)
@@ -2423,7 +2423,8 @@ package body Gen_IL.Gen is
             end if;
          end loop;
 
-         Put (S, ")" & LF & "return " & Node_Or_Entity (Root) & "_Id");
+         Put (S, ")" & LF);
+         Put (S, "return " & Node_Or_Entity (Root) & "_Id");
          Decrease_Indent (S, 2);
          Decrease_Indent (S, 1);
       end Put_Make_Spec;