mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
posix.mak: Enforce whitespace before opening parenthesis for version conditions
This commit is contained in:
parent
c029ef2ead
commit
fd5facfe04
74 changed files with 730 additions and 730 deletions
|
@ -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; }());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue