diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-07-30 07:06:39 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-07-30 07:06:39 +0200 |
commit | cbdf92940206f1c0a9093c8164b911b311949408 (patch) | |
tree | 74a07def5ffe753a880dfa444b320c092b4fc31d | |
parent | ceac775f4fc250a6299022005109699d58b451e3 (diff) | |
download | ghdl-cbdf92940206f1c0a9093c8164b911b311949408.tar.gz ghdl-cbdf92940206f1c0a9093c8164b911b311949408.tar.bz2 ghdl-cbdf92940206f1c0a9093c8164b911b311949408.zip |
Update STYLE.
-rw-r--r-- | STYLE | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |