Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dstyle.dd
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,18 @@ $(H4 $(LNAME2 phobos_line_length, Line length))
80 characters long but that they $(I can) exceed 80 characters when
appropriate. However, they can $(I never) exceed 120 characters.)
$(LISTSECTION phobos_whitespace, Whitespace,
$(LI Put a space after `for`, `foreach`, `if`, and `while`: )
$(LI Put a space after `for`, `foreach`, `if`, `while`, and `version`: )
-------------------------------
for (…) { … }
foreach (…) { … }
if (x) { … }
static if (x) { … }
while (…) { … }
do { … } while (…);
version (…) { … }
-------------------------------
$(LI Chains containing `else if (…)` or `else static if (…)` should set the
keywords on the same line:)
$(LI Chains containing `else if (…)`, `else static if (…)` or `else version (…)`
should set the keywords on the same line:)
-------------------------------
if (…)
{
Expand Down