This commit is contained in:
Hackerpilot 2015-03-07 23:00:14 -08:00
parent 3d919d191d
commit 0d496129be
3 changed files with 32 additions and 1 deletions

View file

@ -673,7 +673,8 @@ private:
}
else
{
if (index > 0 && !justAddedExtraNewline && !peekBackIs(tok!"{") && !peekBackIs(tok!"}"))
if (index > 0 && !justAddedExtraNewline && !peekBackIs(tok!"{")
&& !peekBackIs(tok!"}") && !peekBackIs(tok!";"))
{
if (config.braceStyle == BraceStyle.otbs)
write(" ");

15
tests/issue0059.d Normal file
View file

@ -0,0 +1,15 @@
extern (C++) FuncDeclaration buildXopEquals(StructDeclaration sd, Scope* sc)
{
if (!needOpEquals(sd))
return null; // bitwise comparison would work
//printf("StructDeclaration::buildXopEquals() %s\n", sd->toChars());
if (Dsymbol eq = search_function(sd, Id.eq))
{
if (FuncDeclaration fd = eq.isFuncDeclaration())
{
TypeFunction tfeqptr;
{
}
}
}
}

15
tests/issue0059.d.ref Normal file
View file

@ -0,0 +1,15 @@
extern (C++) FuncDeclaration buildXopEquals(StructDeclaration sd, Scope* sc)
{
if (!needOpEquals(sd))
return null; // bitwise comparison would work
//printf("StructDeclaration::buildXopEquals() %s\n", sd->toChars());
if (Dsymbol eq = search_function(sd, Id.eq))
{
if (FuncDeclaration fd = eq.isFuncDeclaration())
{
TypeFunction tfeqptr;
{
}
}
}
}