posix.mak: Enforce whitespace before opening parenthesis for version conditions

This commit is contained in:
Iain Buclaw 2018-09-22 16:57:24 +02:00
parent c029ef2ead
commit fd5facfe04
74 changed files with 730 additions and 730 deletions

View file

@ -554,7 +554,7 @@ private void bailOut(E : Throwable = Exception)(string file, size_t line, scope
enum expect =
(BodySafe || !EncloseSafe) && (!EnclosePure || BodyPure);
version(none)
version (none)
pragma(msg, "safe = ", EncloseSafe?1:0, "/", BodySafe?1:0, ", ",
"pure = ", EnclosePure?1:0, "/", BodyPure?1:0, ", ",
"expect = ", expect?"OK":"NG", ", ",
@ -1309,7 +1309,7 @@ bool mayPointTo(S, T)(auto ref const shared S source, ref const shared T target)
}
version(unittest)
version (unittest)
{
// 17084 : the bug doesn't happen if these declarations are
// in the unittest block (static or not).
@ -1850,7 +1850,7 @@ expression.
static assert(!__traits(compiles, (new Object()).ifThrown(e=>1)));
}
version(unittest) package
version (unittest) package
void assertCTFEable(alias dg)()
{
static assert({ cast(void) dg(); return true; }());