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/par-ch5.adb | |
parent | 1263d20c60a2d7b5e5bccfcd39a89dde448b1c22 (diff) | |
download | gcc-65297ca971f11afebfb1d420d32bc4c769bbbdf5.tar.gz |
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/par-ch5.adb')
-rw-r--r-- | gcc/ada/par-ch5.adb | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/ada/par-ch5.adb b/gcc/ada/par-ch5.adb index bab2637150e..0073528325d 100644 --- a/gcc/ada/par-ch5.adb +++ b/gcc/ada/par-ch5.adb @@ -210,7 +210,9 @@ package body Ch5 is end loop; begin - if Style_Check then Style.Check_Indentation; end if; + if Style_Check then + Style.Check_Indentation; + end if; -- Deal with reserved identifier (in assignment or call) @@ -1121,7 +1123,10 @@ package body Ch5 is begin if Token_Is_At_Start_Of_Line and then Token = Tok_Then then Check_If_Column; - if Style_Check then Style.Check_Then (Loc); end if; + + if Style_Check then + Style.Check_Then (Loc); + end if; end if; end Check_Then_Column; @@ -1397,7 +1402,10 @@ package body Ch5 is Case_Alt_Node : Node_Id; begin - if Style_Check then Style.Check_Indentation; end if; + if Style_Check then + Style.Check_Indentation; + end if; + Case_Alt_Node := New_Node (N_Case_Statement_Alternative, Token_Ptr); T_When; -- past WHEN (or give error in OTHERS case) Set_Discrete_Choices (Case_Alt_Node, P_Discrete_Choice_List); @@ -2069,7 +2077,9 @@ package body Ch5 is Set_Declarations (Parent, Decls); if Token = Tok_Begin then - if Style_Check then Style.Check_Indentation; end if; + if Style_Check then + Style.Check_Indentation; + end if; Error_Msg_Col := Scope.Table (Scope.Last).Ecol; |