This commit is contained in:
Hackerpilot 2015-03-08 18:07:26 -07:00
parent 8ab3b5c9f7
commit 4b7e37c1da
3 changed files with 14 additions and 1 deletions

View file

@ -290,7 +290,7 @@ private:
write(" ");
writeParens(true);
}
else if (isBlockHeader())
else if (isBlockHeader() && peekIs(tok!"(", false))
{
if (current.type == tok!"if")
ifIndents.push(tempIndent);

6
tests/issue0073.d Normal file
View file

@ -0,0 +1,6 @@
void presumed (out uint column) @trusted {
CXString cxstring;
clang_getPresumedLocation(cx, &cxstring, &line, &column);
filename = toD(cxstring);
}

7
tests/issue0073.d.ref Normal file
View file

@ -0,0 +1,7 @@
void presumed(out uint column) @trusted
{
CXString cxstring;
clang_getPresumedLocation(cx, &cxstring, &line, &column);
filename = toD(cxstring);
}