Fix #59
This commit is contained in:
parent
3d919d191d
commit
0d496129be
|
|
@ -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(" ");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue