diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-14 08:36:48 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-14 08:36:48 +0000 |
commit | 65297ca971f11afebfb1d420d32bc4c769bbbdf5 (patch) | |
tree | 05b5ae79d8bf769dcfc728d032c9a64d115ddfeb /gcc/ada/styleg.ads | |
parent | 1263d20c60a2d7b5e5bccfcd39a89dde448b1c22 (diff) | |
download | ppe42-gcc-65297ca971f11afebfb1d420d32bc4c769bbbdf5.tar.gz ppe42-gcc-65297ca971f11afebfb1d420d32bc4c769bbbdf5.zip |
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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127409 138bc75d-0d04-0410-961f-82ee72b054a4
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 7a5b312091b..448755a7bb9 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 |