Style fix: enforce allman style

This commit is contained in:
Sebastian Wilzbach 2016-10-11 11:47:54 +02:00
parent 1ca4d31e21
commit 6f1690f6b1
2 changed files with 6 additions and 3 deletions

View file

@ -1506,7 +1506,8 @@ private void shortSort(alias less, Range)(Range r)
immutable maxJ = r.length - 2;
for (size_t i = r.length - 6; ; --i)
{
static if (is(typeof(() nothrow {
static if (is(typeof(() nothrow
{
auto t = r[0]; if (pred(t, r[0])) r[0] = r[0];
}))) // Can we afford to temporarily invalidate the array?
{

View file

@ -147,7 +147,8 @@ unittest
//issue 4574
//empty successful match still advances the input
string[] pres, posts, hits;
foreach (m; matchFn("abcabc", regex("","g"))) {
foreach (m; matchFn("abcabc", regex("","g")))
{
pres ~= m.pre;
posts ~= m.post;
assert(m.hit.empty);
@ -248,7 +249,8 @@ unittest
auto w2 = ["", "abc", "de", "fg", "hi"];
uint cnt;
foreach (e; sp2) {
foreach (e; sp2)
{
assert(w2[cnt++] == e);
}
assert(equal(sp2, w2));