diff options
Diffstat (limited to 'gcc/ada/gnat-style.texi')
-rw-r--r-- | gcc/ada/gnat-style.texi | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gcc/ada/gnat-style.texi b/gcc/ada/gnat-style.texi index 1bba7030935..63882afceca 100644 --- a/gcc/ada/gnat-style.texi +++ b/gcc/ada/gnat-style.texi @@ -7,14 +7,14 @@ @c o @c G N A T C O D I N G S T Y L E o @c o -@c GNAT is maintained by Ada Core Technologies Inc (http://www.gnat.com). o +@c Copyright (C) 1992-2012, AdaCore o @c o @c oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo @setfilename gnat-style.info @copying -Copyright @copyright{} 1992-2008, Free Software Foundation, Inc. +Copyright @copyright{} 1992-2012, AdaCore Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -350,6 +350,24 @@ that give useful information instead. Local names can be shorter, because they are used only within one context, where comments explain their purpose. +@item +When starting a default expression on the line that follows the declaration +line, use 2 characters for indentation. + +@smallexample @c adanocomment + Entity1 : Integer := + Function_Name (Parameters, For_Call); +@end smallexample + +@item +If a default expression needs to be continued on subsequent lines, the +continuations should be indented from the start of the expression. + +@smallexample @c adanocomment + Entity1 : Integer := Long_Function_Name + (parameters for call); +@end smallexample + @end itemize |