From cbdf92940206f1c0a9093c8164b911b311949408 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 30 Jul 2016 07:06:39 +0200 Subject: Update STYLE. --- STYLE | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'STYLE') diff --git a/STYLE b/STYLE index 448e0ef6b..c7acb2756 100644 --- a/STYLE +++ b/STYLE @@ -71,11 +71,13 @@ If the parametere line is too long with the 'is', put in on a separate line: 1) 'then' on the same line: if Get_Expr_Staticness (Decl) = Locally then -2) If not possible, 'then' aligned with the 'if': +2) If not possible, 'then' is alone on its line aligned with the 'if': if Expr = Null_Iir or else Get_Kind (Expr) = Iir_Kind_Overflow_Literal then +3) For a multiline condition, 'or else' and 'and then' should start lines. + * 'Local' variable declaration: Do not initialize variables, constants must be declared before variables: is -- cgit v1.2.3