aboutsummaryrefslogtreecommitdiffstats
path: root/STYLE
diff options
context:
space:
mode:
Diffstat (limited to 'STYLE')
-rw-r--r--STYLE4
1 files changed, 3 insertions, 1 deletions
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