Commit 29b96af1 authored by Marco Bubke's avatar Marco Bubke

Cmb: Remove white spaces around operators

Change-Id: Icad10f930a5e67b90fc2addcf9625116069ff7a6
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 7309e8bb
......@@ -46,17 +46,17 @@ QDataStream &operator>>(QDataStream &in, AliveCommand &/*command*/)
return in;
}
bool operator == (const AliveCommand &/*first*/, const AliveCommand &/*second*/)
bool operator==(const AliveCommand &/*first*/, const AliveCommand &/*second*/)
{
return true;
}
bool operator < (const AliveCommand &/*first*/, const AliveCommand &/*second*/)
bool operator<(const AliveCommand &/*first*/, const AliveCommand &/*second*/)
{
return true;
}
QDebug operator <<(QDebug debug, const AliveCommand &/*command*/)
QDebug operator<<(QDebug debug, const AliveCommand &/*command*/)
{
return debug.nospace() << "AliveCommand()";
}
......
......@@ -43,10 +43,10 @@ class CMBIPC_EXPORT AliveCommand
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const AliveCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, AliveCommand &command);
CMBIPC_EXPORT bool operator == (const AliveCommand &first, const AliveCommand &second);
CMBIPC_EXPORT bool operator < (const AliveCommand &first, const AliveCommand &second);
CMBIPC_EXPORT bool operator==(const AliveCommand &first, const AliveCommand &second);
CMBIPC_EXPORT bool operator<(const AliveCommand &first, const AliveCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const AliveCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const AliveCommand &command);
}
......
......@@ -70,18 +70,18 @@ QDataStream &operator>>(QDataStream &in, CodeCompletedCommand &command)
return in;
}
bool operator == (const CodeCompletedCommand &first, const CodeCompletedCommand &second)
bool operator==(const CodeCompletedCommand &first, const CodeCompletedCommand &second)
{
return first.ticketNumber_ == second.ticketNumber_
&& first.codeCompletions_ == second.codeCompletions_;
}
bool operator < (const CodeCompletedCommand &first, const CodeCompletedCommand &second)
bool operator<(const CodeCompletedCommand &first, const CodeCompletedCommand &second)
{
return first.ticketNumber_ < second.ticketNumber_;
}
QDebug operator <<(QDebug debug, const CodeCompletedCommand &command)
QDebug operator<<(QDebug debug, const CodeCompletedCommand &command)
{
debug.nospace() << "CodeCompletedCommand(";
......
......@@ -42,9 +42,9 @@ class CMBIPC_EXPORT CodeCompletedCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletedCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletedCommand &command);
friend CMBIPC_EXPORT bool operator == (const CodeCompletedCommand &first, const CodeCompletedCommand &second);
friend CMBIPC_EXPORT bool operator < (const CodeCompletedCommand &first, const CodeCompletedCommand &second);
friend CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CodeCompletedCommand &command);
friend CMBIPC_EXPORT bool operator==(const CodeCompletedCommand &first, const CodeCompletedCommand &second);
friend CMBIPC_EXPORT bool operator<(const CodeCompletedCommand &first, const CodeCompletedCommand &second);
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CodeCompletedCommand &command);
friend void PrintTo(const CodeCompletedCommand &command, ::std::ostream* os);
public:
CodeCompletedCommand() = default;
......@@ -61,10 +61,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletedCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletedCommand &command);
CMBIPC_EXPORT bool operator == (const CodeCompletedCommand &first, const CodeCompletedCommand &second);
CMBIPC_EXPORT bool operator < (const CodeCompletedCommand &first, const CodeCompletedCommand &second);
CMBIPC_EXPORT bool operator==(const CodeCompletedCommand &first, const CodeCompletedCommand &second);
CMBIPC_EXPORT bool operator<(const CodeCompletedCommand &first, const CodeCompletedCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CodeCompletedCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CodeCompletedCommand &command);
void PrintTo(const CodeCompletedCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -96,7 +96,7 @@ QDataStream &operator>>(QDataStream &in, CompleteCodeCommand &command)
return in;
}
bool operator == (const CompleteCodeCommand &first, const CompleteCodeCommand &second)
bool operator==(const CompleteCodeCommand &first, const CompleteCodeCommand &second)
{
return first.ticketNumber_ == second.ticketNumber_
&& first.filePath_ == second.filePath_
......@@ -105,7 +105,7 @@ bool operator == (const CompleteCodeCommand &first, const CompleteCodeCommand &s
&& first.column_ == second.column_;
}
bool operator < (const CompleteCodeCommand &first, const CompleteCodeCommand &second)
bool operator<(const CompleteCodeCommand &first, const CompleteCodeCommand &second)
{
return first.ticketNumber_ < second.ticketNumber_
&& first.filePath_ < second.filePath_
......@@ -114,7 +114,7 @@ bool operator < (const CompleteCodeCommand &first, const CompleteCodeCommand &se
&& first.column_ < second.column_;
}
QDebug operator <<(QDebug debug, const CompleteCodeCommand &command)
QDebug operator<<(QDebug debug, const CompleteCodeCommand &command)
{
debug.nospace() << "CompleteCodeCommand(";
......
......@@ -42,9 +42,9 @@ class CMBIPC_EXPORT CompleteCodeCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CompleteCodeCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CompleteCodeCommand &command);
friend CMBIPC_EXPORT bool operator == (const CompleteCodeCommand &first, const CompleteCodeCommand &second);
friend CMBIPC_EXPORT bool operator < (const CompleteCodeCommand &first, const CompleteCodeCommand &second);
friend CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CompleteCodeCommand &command);
friend CMBIPC_EXPORT bool operator==(const CompleteCodeCommand &first, const CompleteCodeCommand &second);
friend CMBIPC_EXPORT bool operator<(const CompleteCodeCommand &first, const CompleteCodeCommand &second);
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CompleteCodeCommand &command);
friend void PrintTo(const CompleteCodeCommand &command, ::std::ostream* os);
public:
......@@ -73,10 +73,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CompleteCodeCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CompleteCodeCommand &command);
CMBIPC_EXPORT bool operator == (const CompleteCodeCommand &first, const CompleteCodeCommand &second);
CMBIPC_EXPORT bool operator < (const CompleteCodeCommand &first, const CompleteCodeCommand &second);
CMBIPC_EXPORT bool operator==(const CompleteCodeCommand &first, const CompleteCodeCommand &second);
CMBIPC_EXPORT bool operator<(const CompleteCodeCommand &first, const CompleteCodeCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CompleteCodeCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CompleteCodeCommand &command);
void PrintTo(const CompleteCodeCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -63,17 +63,17 @@ QDataStream &operator>>(QDataStream &in, EchoCommand &command)
return in;
}
bool operator == (const EchoCommand &first, const EchoCommand &second)
bool operator==(const EchoCommand &first, const EchoCommand &second)
{
return first.command_ == second.command_;
}
bool operator < (const EchoCommand &first, const EchoCommand &second)
bool operator<(const EchoCommand &first, const EchoCommand &second)
{
return first.command_ < second.command_;
}
QDebug operator <<(QDebug debug, const EchoCommand &command)
QDebug operator<<(QDebug debug, const EchoCommand &command)
{
return debug.nospace() << "EchoCommand(" << command.command() << ")";
}
......
......@@ -41,8 +41,8 @@ namespace CodeModelBackEnd {
class CMBIPC_EXPORT EchoCommand
{
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, EchoCommand &command);
friend CMBIPC_EXPORT bool operator == (const EchoCommand &first, const EchoCommand &second);
friend CMBIPC_EXPORT bool operator < (const EchoCommand &first, const EchoCommand &second);
friend CMBIPC_EXPORT bool operator==(const EchoCommand &first, const EchoCommand &second);
friend CMBIPC_EXPORT bool operator<(const EchoCommand &first, const EchoCommand &second);
public:
EchoCommand() = default;
explicit EchoCommand(const QVariant &command);
......@@ -55,10 +55,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const EchoCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, EchoCommand &command);
CMBIPC_EXPORT bool operator == (const EchoCommand &first, const EchoCommand &second);
CMBIPC_EXPORT bool operator < (const EchoCommand &first, const EchoCommand &second);
CMBIPC_EXPORT bool operator==(const EchoCommand &first, const EchoCommand &second);
CMBIPC_EXPORT bool operator<(const EchoCommand &first, const EchoCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const EchoCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const EchoCommand &command);
void PrintTo(const EchoCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -48,17 +48,17 @@ QDataStream &operator>>(QDataStream &in, EndCommand &/*command*/)
return in;
}
bool operator == (const EndCommand &/*first*/, const EndCommand &/*second*/)
bool operator==(const EndCommand &/*first*/, const EndCommand &/*second*/)
{
return true;
}
bool operator < (const EndCommand &/*first*/, const EndCommand &/*second*/)
bool operator<(const EndCommand &/*first*/, const EndCommand &/*second*/)
{
return true;
}
QDebug operator <<(QDebug debug, const EndCommand &/*command*/)
QDebug operator<<(QDebug debug, const EndCommand &/*command*/)
{
return debug.nospace() << "EndCommand()";
}
......
......@@ -43,10 +43,10 @@ class CMBIPC_EXPORT EndCommand
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const EndCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, EndCommand &command);
CMBIPC_EXPORT bool operator == (const EndCommand &first, const EndCommand &second);
CMBIPC_EXPORT bool operator < (const EndCommand &first, const EndCommand &second);
CMBIPC_EXPORT bool operator==(const EndCommand &first, const EndCommand &second);
CMBIPC_EXPORT bool operator<(const EndCommand &first, const EndCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const EndCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const EndCommand &command);
void PrintTo(const EndCommand &command, ::std::ostream* os);
}
......
......@@ -62,17 +62,17 @@ QDataStream &operator>>(QDataStream &in, RegisterProjectPartsForCodeCompletionCo
return in;
}
bool operator == (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second)
bool operator==(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second)
{
return first.projectContainers_ == second.projectContainers_;
}
bool operator < (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second)
bool operator<(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second)
{
return first.projectContainers_ < second.projectContainers_;
}
QDebug operator <<(QDebug debug, const RegisterProjectPartsForCodeCompletionCommand &command)
QDebug operator<<(QDebug debug, const RegisterProjectPartsForCodeCompletionCommand &command)
{
debug.nospace() << "RegisterProjectPartsForCodeCompletion(";
......
......@@ -42,8 +42,8 @@ class CMBIPC_EXPORT RegisterProjectPartsForCodeCompletionCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RegisterProjectPartsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RegisterProjectPartsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT bool operator == (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator < (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator==(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator<(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
friend void PrintTo(const RegisterProjectPartsForCodeCompletionCommand &command, ::std::ostream* os);
public:
RegisterProjectPartsForCodeCompletionCommand() = default;
......@@ -57,10 +57,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RegisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RegisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT bool operator == (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator < (const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator==(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator<(const RegisterProjectPartsForCodeCompletionCommand &first, const RegisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const RegisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const RegisterProjectPartsForCodeCompletionCommand &command);
void PrintTo(const RegisterProjectPartsForCodeCompletionCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -62,17 +62,17 @@ QDataStream &operator>>(QDataStream &in, RegisterTranslationUnitForCodeCompletio
return in;
}
bool operator == (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second)
bool operator==(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second)
{
return first.fileContainers_ == second.fileContainers_;
}
bool operator < (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second)
bool operator<(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second)
{
return first.fileContainers_ < second.fileContainers_;
}
QDebug operator <<(QDebug debug, const RegisterTranslationUnitForCodeCompletionCommand &command)
QDebug operator<<(QDebug debug, const RegisterTranslationUnitForCodeCompletionCommand &command)
{
debug.nospace() << "RegisterTranslationUnitForCodeCompletionCommand(";
......
......@@ -42,8 +42,8 @@ class CMBIPC_EXPORT RegisterTranslationUnitForCodeCompletionCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RegisterTranslationUnitForCodeCompletionCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RegisterTranslationUnitForCodeCompletionCommand &command);
friend CMBIPC_EXPORT bool operator == (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator < (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator==(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator<(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
friend void PrintTo(const RegisterTranslationUnitForCodeCompletionCommand &command, ::std::ostream* os);
public:
RegisterTranslationUnitForCodeCompletionCommand() = default;
......@@ -57,10 +57,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const RegisterTranslationUnitForCodeCompletionCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, RegisterTranslationUnitForCodeCompletionCommand &command);
CMBIPC_EXPORT bool operator == (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator < (const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator==(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator<(const RegisterTranslationUnitForCodeCompletionCommand &first, const RegisterTranslationUnitForCodeCompletionCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const RegisterTranslationUnitForCodeCompletionCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const RegisterTranslationUnitForCodeCompletionCommand &command);
void PrintTo(const RegisterTranslationUnitForCodeCompletionCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -63,17 +63,17 @@ QDataStream &operator>>(QDataStream &in, UnregisterProjectPartsForCodeCompletion
return in;
}
bool operator == (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second)
bool operator==(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second)
{
return first.filePaths_ == second.filePaths_;
}
bool operator < (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second)
bool operator<(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second)
{
return first.filePaths_ < second.filePaths_;
}
QDebug operator <<(QDebug debug, const UnregisterProjectPartsForCodeCompletionCommand &command)
QDebug operator<<(QDebug debug, const UnregisterProjectPartsForCodeCompletionCommand &command)
{
debug.nospace() << "UnregisterProjectPartsForCodeCompletionCommand(";
......
......@@ -43,8 +43,8 @@ class CMBIPC_EXPORT UnregisterProjectPartsForCodeCompletionCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const UnregisterProjectPartsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, UnregisterProjectPartsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT bool operator == (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator < (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator==(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator<(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
friend void PrintTo(const UnregisterProjectPartsForCodeCompletionCommand &command, ::std::ostream* os);
public:
......@@ -59,10 +59,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const UnregisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, UnregisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT bool operator == (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator < (const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator==(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator<(const UnregisterProjectPartsForCodeCompletionCommand &first, const UnregisterProjectPartsForCodeCompletionCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const UnregisterProjectPartsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const UnregisterProjectPartsForCodeCompletionCommand &command);
void PrintTo(const UnregisterProjectPartsForCodeCompletionCommand &command, ::std::ostream* os);
} // namespace CodeModelBackEnd
......
......@@ -65,17 +65,17 @@ QDataStream &operator>>(QDataStream &in, UnregisterTranslationUnitsForCodeComple
return in;
}
bool operator == (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second)
bool operator==(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second)
{
return first.fileContainers_ == second.fileContainers_;
}
bool operator < (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second)
bool operator<(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second)
{
return first.fileContainers_ < second.fileContainers_;
}
QDebug operator <<(QDebug debug, const UnregisterTranslationUnitsForCodeCompletionCommand &command)
QDebug operator<<(QDebug debug, const UnregisterTranslationUnitsForCodeCompletionCommand &command)
{
debug.nospace() << "UnregisterTranslationUnitsForCodeCompletionCommand(";
......
......@@ -44,8 +44,8 @@ class CMBIPC_EXPORT UnregisterTranslationUnitsForCodeCompletionCommand
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const UnregisterTranslationUnitsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, UnregisterTranslationUnitsForCodeCompletionCommand &command);
friend CMBIPC_EXPORT bool operator == (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator < (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator==(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
friend CMBIPC_EXPORT bool operator<(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
friend void PrintTo(const UnregisterTranslationUnitsForCodeCompletionCommand &command, ::std::ostream* os);
public:
......@@ -60,10 +60,10 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const UnregisterTranslationUnitsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, UnregisterTranslationUnitsForCodeCompletionCommand &command);
CMBIPC_EXPORT bool operator == (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator < (const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator==(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
CMBIPC_EXPORT bool operator<(const UnregisterTranslationUnitsForCodeCompletionCommand &first, const UnregisterTranslationUnitsForCodeCompletionCommand &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const UnregisterTranslationUnitsForCodeCompletionCommand &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const UnregisterTranslationUnitsForCodeCompletionCommand &command);
#ifdef CODEMODELBACKEND_TESTS
void PrintTo(const UnregisterTranslationUnitsForCodeCompletionCommand &command, ::std::ostream* os);
#endif
......
......@@ -162,13 +162,13 @@ QDataStream &operator>>(QDataStream &in, CodeCompletion &command)
return in;
}
bool operator == (const CodeCompletion &first, const CodeCompletion &second)
bool operator==(const CodeCompletion &first, const CodeCompletion &second)
{
return first.text_ == second.text_
&& first.completionKind_ == second.completionKind_;
}
bool operator < (const CodeCompletion &first, const CodeCompletion &second)
bool operator<(const CodeCompletion &first, const CodeCompletion &second)
{
return first.text_ < second.text_;
}
......@@ -209,7 +209,7 @@ static const char *availabilityToString(CodeCompletion::Availability availabilit
return nullptr;
}
QDebug operator <<(QDebug debug, const CodeCompletion &command)
QDebug operator<<(QDebug debug, const CodeCompletion &command)
{
debug.nospace() << "CodeCompletion(";
......
......@@ -44,9 +44,9 @@ class CMBIPC_EXPORT CodeCompletion
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletion &command);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletion &command);
friend CMBIPC_EXPORT bool operator == (const CodeCompletion &first, const CodeCompletion &second);
friend CMBIPC_EXPORT bool operator < (const CodeCompletion &first, const CodeCompletion &second);
friend CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CodeCompletion &command);
friend CMBIPC_EXPORT bool operator==(const CodeCompletion &first, const CodeCompletion &second);
friend CMBIPC_EXPORT bool operator<(const CodeCompletion &first, const CodeCompletion &second);
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CodeCompletion &command);
friend void PrintTo(const CodeCompletion &command, ::std::ostream* os);
public:
......@@ -125,11 +125,11 @@ private:
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletion &command);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletion &command);
CMBIPC_EXPORT bool operator == (const CodeCompletion &first, const CodeCompletion &second);
CMBIPC_EXPORT bool operator < (const CodeCompletion &first, const CodeCompletion &second);
CMBIPC_EXPORT bool operator==(const CodeCompletion &first, const CodeCompletion &second);
CMBIPC_EXPORT bool operator<(const CodeCompletion &first, const CodeCompletion &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CodeCompletion &command);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, CodeCompletion::Kind kind);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CodeCompletion &command);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, CodeCompletion::Kind kind);
void PrintTo(const CodeCompletion &command, ::std::ostream* os);
void PrintTo(CodeCompletion::Kind kind, ::std::ostream *os);
......
......@@ -72,7 +72,7 @@ quint32 &CodeCompletionChunk::kindAsInt()
return reinterpret_cast<quint32&>(kind_);
}
QDataStream &operator <<(QDataStream &out, const CodeCompletionChunk &chunk)
QDataStream &operator<<(QDataStream &out, const CodeCompletionChunk &chunk)
{
out << chunk.kind_;
out << chunk.text_;
......@@ -83,7 +83,7 @@ QDataStream &operator <<(QDataStream &out, const CodeCompletionChunk &chunk)
return out;
}
QDataStream &operator >>(QDataStream &in, CodeCompletionChunk &chunk)
QDataStream &operator>>(QDataStream &in, CodeCompletionChunk &chunk)
{
in >> chunk.kindAsInt();
in >> chunk.text_;
......@@ -94,7 +94,7 @@ QDataStream &operator >>(QDataStream &in, CodeCompletionChunk &chunk)
return in;
}
bool operator ==(const CodeCompletionChunk &first, const CodeCompletionChunk &second)
bool operator==(const CodeCompletionChunk &first, const CodeCompletionChunk &second)
{
return first.kind() == second.kind()
&& first.text() == second.text()
......@@ -131,7 +131,7 @@ static const char *completionChunkKindToString(CodeCompletionChunk::Kind kind)
return nullptr;
}
QDebug operator <<(QDebug debug, const CodeCompletionChunk &chunk)
QDebug operator<<(QDebug debug, const CodeCompletionChunk &chunk)
{
debug.nospace() << "CodeCompletionChunk(";
debug.nospace() << completionChunkKindToString(chunk.kind()) << ", ";
......
......@@ -41,9 +41,9 @@ namespace CodeModelBackEnd {
class CMBIPC_EXPORT CodeCompletionChunk
{
friend CMBIPC_EXPORT QDataStream &operator <<(QDataStream &out, const CodeCompletionChunk &chunk);
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletionChunk &chunk);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletionChunk &chunk);
friend CMBIPC_EXPORT bool operator == (const CodeCompletionChunk &first, const CodeCompletionChunk &second);
friend CMBIPC_EXPORT bool operator==(const CodeCompletionChunk &first, const CodeCompletionChunk &second);
public:
enum Kind : quint32 {
......@@ -89,11 +89,11 @@ private:
};
CMBIPC_EXPORT QDataStream &operator <<(QDataStream &out, const CodeCompletionChunk &chunk);
CMBIPC_EXPORT QDataStream &operator >>(QDataStream &in, CodeCompletionChunk &chunk);
CMBIPC_EXPORT bool operator ==(const CodeCompletionChunk &first, const CodeCompletionChunk &second);
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const CodeCompletionChunk &chunk);
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, CodeCompletionChunk &chunk);
CMBIPC_EXPORT bool operator==(const CodeCompletionChunk &first, const CodeCompletionChunk &second);
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const CodeCompletionChunk &chunk);
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const CodeCompletionChunk &chunk);
void PrintTo(const CodeCompletionChunk &chunk, ::std::ostream* os);
void PrintTo(const CodeCompletionChunk::Kind &kind, ::std::ostream* os);
......
......@@ -89,12 +89,12 @@ QDataStream &operator>>(QDataStream &in, FileContainer &container)
return in;
}
bool operator == (const FileContainer &first, const FileContainer &second)
bool operator==(const FileContainer &first, const FileContainer &second)
{
return first.filePath_ == second.filePath_ && first.projectPartId_ == second.projectPartId_;
}
bool operator < (const FileContainer &first, const FileContainer &second)
bool operator<(const FileContainer &first, const FileContainer &second)
{
if (first.filePath_ == second.filePath_)
return first.projectPartId_ < second.projectPartId_;
......@@ -102,7 +102,7 @@ bool operator < (const FileContainer &first, const FileContainer &second)
return first.filePath_ < second.filePath_;
}
QDebug operator <<(QDebug debug, const FileContainer &container)
QDebug operator<<(QDebug debug, const FileContainer &container)
{
debug.nospace() << "FileContainer("
<< container.filePath()
......
......@@ -43,8 +43,8 @@ class CMBIPC_EXPORT FileContainer
{
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const FileContainer &container);
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, FileContainer &container);
friend CMBIPC_EXPORT bool operator == (const FileContainer &first, const FileContainer &second);
friend CMBIPC_EXPORT bool operator < (const FileContainer &first, const FileContainer &second);
friend CMBIPC_EXPORT bool operator==(const FileContainer &first, const FileContainer &second);
friend CMBIPC_EXPORT bool operator<(const FileContainer &first, const FileContainer &second);
public: