aboutsummaryrefslogtreecommitdiffstats
path: root/STYLE
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-07-30 07:06:39 +0200
committerTristan Gingold <tgingold@free.fr>2016-07-30 07:06:39 +0200
commitcbdf92940206f1c0a9093c8164b911b311949408 (patch)
tree74a07def5ffe753a880dfa444b320c092b4fc31d /STYLE
parentceac775f4fc250a6299022005109699d58b451e3 (diff)
downloadghdl-cbdf92940206f1c0a9093c8164b911b311949408.tar.gz
ghdl-cbdf92940206f1c0a9093c8164b911b311949408.tar.bz2
ghdl-cbdf92940206f1c0a9093c8164b911b311949408.zip
Update STYLE.
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