aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRonan Desplanques <desplanques@adacore.com>2024-08-20 15:46:22 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-09-02 10:22:50 +0200
commit91f0a3a5a5c44b4ab0f97d6b1a9bd1c6b36b5736 (patch)
tree744839073120c7c17d383c73360e9af77f89ea37 /gcc
parenta004c28c50581fe9ac20ac0e2cc1bc0387954db4 (diff)
downloadgcc-91f0a3a5a5c44b4ab0f97d6b1a9bd1c6b36b5736.zip
gcc-91f0a3a5a5c44b4ab0f97d6b1a9bd1c6b36b5736.tar.gz
gcc-91f0a3a5a5c44b4ab0f97d6b1a9bd1c6b36b5736.tar.bz2
ada: Fix minor issues in -gnaty0's documentation
Before this patch, the documentation of -gnaty0 used 0-based indexing for column numbers while 1-based indexing is used everywhere else. This patch makes this documentation use 1-based indexing, and also adds a missing parenthesis. gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Fix minor issues. * gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst6
-rw-r--r--gcc/ada/gnat_ugn.texi8
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
index 07ca2ea..4576009 100644
--- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
+++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst
@@ -4783,7 +4783,7 @@ checks to be performed. The following checks are defined:
then proper indentation is checked, with the digit indicating the
indentation level required. A value of zero turns off this style check.
The rule checks that the following constructs start on a column that is
- a multiple of the alignment level:
+ one plus a multiple of the alignment level:
* beginnings of declarations (except record component declarations)
and statements;
@@ -4794,10 +4794,10 @@ checks to be performed. The following checks are defined:
or body or that completes a compound statement.
Full line comments must be
- aligned with the ``--`` starting on a column that is a multiple of
+ aligned with the ``--`` starting on a column that is one plus a multiple of
the alignment level, or they may be aligned the same way as the following
non-blank line (this is useful when full line comments appear in the middle
- of a statement, or they may be aligned with the source line on the previous
+ of a statement), or they may be aligned with the source line on the previous
non-blank line.
.. index:: -gnatya (gcc)
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index 27c705e..375f39f 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -19,7 +19,7 @@
@copying
@quotation
-GNAT User's Guide for Native Platforms , Aug 26, 2024
+GNAT User's Guide for Native Platforms , Aug 30, 2024
AdaCore
@@ -13481,7 +13481,7 @@ in the string after @code{-gnaty}
then proper indentation is checked, with the digit indicating the
indentation level required. A value of zero turns off this style check.
The rule checks that the following constructs start on a column that is
-a multiple of the alignment level:
+one plus a multiple of the alignment level:
@itemize *
@@ -13499,10 +13499,10 @@ or body or that completes a compound statement.
@end itemize
Full line comments must be
-aligned with the @code{--} starting on a column that is a multiple of
+aligned with the @code{--} starting on a column that is one plus a multiple of
the alignment level, or they may be aligned the same way as the following
non-blank line (this is useful when full line comments appear in the middle
-of a statement, or they may be aligned with the source line on the previous
+of a statement), or they may be aligned with the source line on the previous
non-blank line.
@end table