diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-06 07:51:56 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-06 07:51:56 +0000 |
commit | 5134891e55843fe541adb9a254067c993f45c9b8 (patch) | |
tree | d291c113a8fc760226d95d8f4abb9bcb435b7a39 /gcc/ada/gnat-style.texi | |
parent | dcbac5c0d12926a631569c793a5ab244c47eb5f7 (diff) | |
download | gcc-5134891e55843fe541adb9a254067c993f45c9b8.tar.gz |
2012-08-06 Robert Dewar <dewar@adacore.com>
* aspects.ads: Define Aspect_Id_Exclude_No_Aspect.
* par-ch13.adb, restrict.adb: Use Aspect_Id_Exclude_No_Aspect to
simplify code.
2012-08-06 Yannick Moy <moy@adacore.com>
* gnat-style.texi: Update style guide for declarations.
2012-08-06 Yannick Moy <moy@adacore.com>
* sem_attr.adb (Analyze_Attribute): In the case for 'Old,
skip a special expansion which is not needed in Alfa mode.
2012-08-06 Yannick Moy <moy@adacore.com>
* sem_ch5.adb (Analyze_Iterator_Specification): Do not perform
an expansion of the iterator in Alfa mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190159 138bc75d-0d04-0410-961f-82ee72b054a4
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 |