diff options
author | Robert Dewar <dewar@adacore.com> | 2007-08-14 10:36:48 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2007-08-14 10:36:48 +0200 |
commit | 835d23b2e08bb08e88163700eac0dc08442b2b0b (patch) | |
tree | 05b5ae79d8bf769dcfc728d032c9a64d115ddfeb /gcc/ada/styleg.ads | |
parent | 4a9b6b95df593226fd81c8d2a828e130b9d9a660 (diff) | |
download | gcc-835d23b2e08bb08e88163700eac0dc08442b2b0b.zip gcc-835d23b2e08bb08e88163700eac0dc08442b2b0b.tar.gz gcc-835d23b2e08bb08e88163700eac0dc08442b2b0b.tar.bz2 |
uintp.adb, [...]: Minor reformatting.
2007-08-14 Robert Dewar <dewar@adacore.com>
* uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
s-osinte-solaris.adb, s-osinte-solaris.ads,
s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
* styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
switch -gnatyS. Enable -gnatyS in GNAT style check mode
From-SVN: r127409
Diffstat (limited to 'gcc/ada/styleg.ads')
-rw-r--r-- | gcc/ada/styleg.ads | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/styleg.ads b/gcc/ada/styleg.ads index 7a5b312..448755a 100644 --- a/gcc/ada/styleg.ads +++ b/gcc/ada/styleg.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2006, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -133,6 +133,13 @@ package Styleg is -- procedure is called only if THEN appears at the start of a line with -- Token_Ptr pointing to the THEN keyword. + procedure Check_Separate_Stmt_Lines; + pragma Inline (Check_Separate_Stmt_Lines); + -- Called after scanning THEN (not preceded by AND) or ELSE (not preceded + -- by OR). Used to check that no tokens follow on the same line (which + -- would intefere with coverage testing). Handles case of THEN ABORT as + -- an exception, as well as PRAGMA after ELSE. + procedure Check_Unary_Plus_Or_Minus; -- Called after scanning a unary plus or minus to check spacing |