Skip to content

Enforce Allman style for do {#4942

Merged
andralex merged 1 commit intodlang:masterfrom
wilzbach:enforce-do-allman-style
Dec 9, 2016
Merged

Enforce Allman style for do {#4942
andralex merged 1 commit intodlang:masterfrom
wilzbach:enforce-do-allman-style

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Dec 9, 2016

As suggested here this simply enforces a common style for do blocks, or in other words this will forbid the verbose do { followed a newline. Inline dos are still allowed, e.g.:

> grep -i 'do *{' **/*.d
std/path.d:            do { ++j; } while (j < path.length && isDirSeparator(path[j]));
std/path.d:                do { ++j; } while (j < path.length && !isDirSeparator(path[j]));
std/process.d:    do { s = tryWait(pid); } while (!s.terminated);

@andralex
Copy link
Member

andralex commented Dec 9, 2016

Auto-merge toggled on

@andralex
Copy link
Member

andralex commented Dec 9, 2016

thx!

@andralex andralex merged commit 59065e7 into dlang:master Dec 9, 2016
@wilzbach wilzbach deleted the enforce-do-allman-style branch February 19, 2017 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants