forked from qt-creator/qt-creator
Cmb: Remove white spaces around operators
Change-Id: Icad10f930a5e67b90fc2addcf9625116069ff7a6 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -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:
|
||||
FileContainer() = default;
|
||||
FileContainer(const Utf8String &filePath,
|
||||
@@ -66,10 +66,10 @@ private:
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const FileContainer &container);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, FileContainer &container);
|
||||
CMBIPC_EXPORT bool operator == (const FileContainer &first, const FileContainer &second);
|
||||
CMBIPC_EXPORT bool operator < (const FileContainer &first, const FileContainer &second);
|
||||
CMBIPC_EXPORT bool operator==(const FileContainer &first, const FileContainer &second);
|
||||
CMBIPC_EXPORT bool operator<(const FileContainer &first, const FileContainer &second);
|
||||
|
||||
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const FileContainer &container);
|
||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const FileContainer &container);
|
||||
void PrintTo(const FileContainer &container, ::std::ostream* os);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
@@ -64,7 +64,7 @@ IpcClientProxy::IpcClientProxy(IpcClientProxy &&other)
|
||||
|
||||
}
|
||||
|
||||
IpcClientProxy &IpcClientProxy::operator =(IpcClientProxy &&other)
|
||||
IpcClientProxy &IpcClientProxy::operator=(IpcClientProxy &&other)
|
||||
{
|
||||
writeCommandBlock = std::move(other.writeCommandBlock);
|
||||
readCommandBlock = std::move(other.readCommandBlock);
|
||||
|
@@ -53,10 +53,10 @@ class CMBIPC_EXPORT IpcClientProxy : public IpcClientInterface
|
||||
public:
|
||||
explicit IpcClientProxy(IpcServerInterface *server, QIODevice *ioDevice);
|
||||
IpcClientProxy(const IpcClientProxy&) = delete;
|
||||
const IpcClientProxy &operator =(const IpcClientProxy&) = delete;
|
||||
const IpcClientProxy &operator=(const IpcClientProxy&) = delete;
|
||||
|
||||
IpcClientProxy(IpcClientProxy&&other);
|
||||
IpcClientProxy &operator =(IpcClientProxy&&other);
|
||||
IpcClientProxy &operator=(IpcClientProxy&&other);
|
||||
|
||||
void alive() override;
|
||||
void echo(const EchoCommand &command) override;
|
||||
|
@@ -54,7 +54,7 @@ class CMBIPC_EXPORT IpcServerProxy : public IpcServerInterface
|
||||
public:
|
||||
IpcServerProxy(IpcClientInterface *client, QIODevice *ioDevice);
|
||||
IpcServerProxy(const IpcServerProxy&) = delete;
|
||||
IpcServerProxy &operator =(const IpcServerProxy&) = delete;
|
||||
IpcServerProxy &operator=(const IpcServerProxy&) = delete;
|
||||
|
||||
void end() override;
|
||||
void registerTranslationUnitsForCodeCompletion(const RegisterTranslationUnitForCodeCompletionCommand &command) override;
|
||||
|
@@ -72,17 +72,17 @@ QDataStream &operator>>(QDataStream &in, ProjectPartContainer &container)
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator == (const ProjectPartContainer &first, const ProjectPartContainer &second)
|
||||
bool operator==(const ProjectPartContainer &first, const ProjectPartContainer &second)
|
||||
{
|
||||
return first.projectPartId_ == second.projectPartId_;
|
||||
}
|
||||
|
||||
bool operator < (const ProjectPartContainer &first, const ProjectPartContainer &second)
|
||||
bool operator<(const ProjectPartContainer &first, const ProjectPartContainer &second)
|
||||
{
|
||||
return first.projectPartId_ < second.projectPartId_;
|
||||
}
|
||||
|
||||
QDebug operator <<(QDebug debug, const ProjectPartContainer &container)
|
||||
QDebug operator<<(QDebug debug, const ProjectPartContainer &container)
|
||||
{
|
||||
debug.nospace() << "ProjectPartContainer("
|
||||
<< container.projectPartId()
|
||||
|
@@ -43,8 +43,8 @@ class CMBIPC_EXPORT ProjectPartContainer
|
||||
{
|
||||
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartContainer &container);
|
||||
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartContainer &container);
|
||||
friend CMBIPC_EXPORT bool operator == (const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
friend CMBIPC_EXPORT bool operator < (const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
friend CMBIPC_EXPORT bool operator==(const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
friend CMBIPC_EXPORT bool operator<(const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
public:
|
||||
ProjectPartContainer() = default;
|
||||
ProjectPartContainer(const Utf8String &projectPartId,
|
||||
@@ -60,10 +60,10 @@ private:
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartContainer &container);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartContainer &container);
|
||||
CMBIPC_EXPORT bool operator == (const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
CMBIPC_EXPORT bool operator < (const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
CMBIPC_EXPORT bool operator==(const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
CMBIPC_EXPORT bool operator<(const ProjectPartContainer &first, const ProjectPartContainer &second);
|
||||
|
||||
QDebug operator <<(QDebug debug, const ProjectPartContainer &container);
|
||||
QDebug operator<<(QDebug debug, const ProjectPartContainer &container);
|
||||
void PrintTo(const ProjectPartContainer &container, ::std::ostream* os);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
@@ -63,17 +63,17 @@ QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistCommand &command)
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator == (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second)
|
||||
bool operator==(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second)
|
||||
{
|
||||
return first.projectPartIds_ == second.projectPartIds_;
|
||||
}
|
||||
|
||||
bool operator < (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second)
|
||||
bool operator<(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second)
|
||||
{
|
||||
return first.projectPartIds_ < second.projectPartIds_;
|
||||
}
|
||||
|
||||
QDebug operator <<(QDebug debug, const ProjectPartsDoNotExistCommand &command)
|
||||
QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistCommand &command)
|
||||
{
|
||||
debug.nospace() << "ProjectPartDoesNotExistCommand(";
|
||||
|
||||
|
@@ -43,9 +43,9 @@ class CMBIPC_EXPORT ProjectPartsDoNotExistCommand
|
||||
{
|
||||
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT bool operator == (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT bool operator < (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT QDebug operator <<(QDebug debug, const ProjectPartsDoNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT bool operator==(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT bool operator<(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistCommand &command);
|
||||
friend void PrintTo(const ProjectPartsDoNotExistCommand &command, ::std::ostream* os);
|
||||
public:
|
||||
ProjectPartsDoNotExistCommand() = default;
|
||||
@@ -59,10 +59,10 @@ private:
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const ProjectPartsDoNotExistCommand &command);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, ProjectPartsDoNotExistCommand &command);
|
||||
CMBIPC_EXPORT bool operator == (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator < (const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator==(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator<(const ProjectPartsDoNotExistCommand &first, const ProjectPartsDoNotExistCommand &second);
|
||||
|
||||
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const ProjectPartsDoNotExistCommand &command);
|
||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const ProjectPartsDoNotExistCommand &command);
|
||||
void PrintTo(const ProjectPartsDoNotExistCommand &command, ::std::ostream* os);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
@@ -77,17 +77,17 @@ QDataStream &operator>>(QDataStream &in, TranslationUnitDoesNotExistCommand &com
|
||||
return in;
|
||||
}
|
||||
|
||||
bool operator == (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second)
|
||||
bool operator==(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second)
|
||||
{
|
||||
return first.fileContainer_ == second.fileContainer_;
|
||||
}
|
||||
|
||||
bool operator < (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second)
|
||||
bool operator<(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second)
|
||||
{
|
||||
return first.fileContainer_ < second.fileContainer_;
|
||||
}
|
||||
|
||||
QDebug operator <<(QDebug debug, const TranslationUnitDoesNotExistCommand &command)
|
||||
QDebug operator<<(QDebug debug, const TranslationUnitDoesNotExistCommand &command)
|
||||
{
|
||||
debug.nospace() << "TranslationUnitDoesNotExistCommand(";
|
||||
|
||||
|
@@ -41,9 +41,9 @@ class CMBIPC_EXPORT TranslationUnitDoesNotExistCommand
|
||||
{
|
||||
friend CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const TranslationUnitDoesNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, TranslationUnitDoesNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT bool operator == (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT bool operator < (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT QDebug operator <<(QDebug debug, const TranslationUnitDoesNotExistCommand &command);
|
||||
friend CMBIPC_EXPORT bool operator==(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT bool operator<(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
friend CMBIPC_EXPORT QDebug operator<<(QDebug debug, const TranslationUnitDoesNotExistCommand &command);
|
||||
friend void PrintTo(const TranslationUnitDoesNotExistCommand &command, ::std::ostream* os);
|
||||
public:
|
||||
TranslationUnitDoesNotExistCommand() = default;
|
||||
@@ -60,10 +60,10 @@ private:
|
||||
|
||||
CMBIPC_EXPORT QDataStream &operator<<(QDataStream &out, const TranslationUnitDoesNotExistCommand &command);
|
||||
CMBIPC_EXPORT QDataStream &operator>>(QDataStream &in, TranslationUnitDoesNotExistCommand &command);
|
||||
CMBIPC_EXPORT bool operator == (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator < (const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator==(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
CMBIPC_EXPORT bool operator<(const TranslationUnitDoesNotExistCommand &first, const TranslationUnitDoesNotExistCommand &second);
|
||||
|
||||
CMBIPC_EXPORT QDebug operator <<(QDebug debug, const TranslationUnitDoesNotExistCommand &command);
|
||||
CMBIPC_EXPORT QDebug operator<<(QDebug debug, const TranslationUnitDoesNotExistCommand &command);
|
||||
void PrintTo(const TranslationUnitDoesNotExistCommand &command, ::std::ostream* os);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
@@ -195,29 +195,29 @@ Utf8String::operator QString() const
|
||||
return toString();
|
||||
}
|
||||
|
||||
const Utf8String operator +(const Utf8String &first, const Utf8String &second)
|
||||
const Utf8String operator+(const Utf8String &first, const Utf8String &second)
|
||||
{
|
||||
return Utf8String(first.byteArray + second.byteArray);
|
||||
}
|
||||
|
||||
|
||||
bool operator !=(const Utf8String &first, const Utf8String &second)
|
||||
bool operator!=(const Utf8String &first, const Utf8String &second)
|
||||
{
|
||||
return first.byteArray != second.byteArray;
|
||||
}
|
||||
|
||||
|
||||
bool operator ==(const Utf8String &first, const Utf8String &second)
|
||||
bool operator==(const Utf8String &first, const Utf8String &second)
|
||||
{
|
||||
return first.byteArray == second.byteArray;
|
||||
}
|
||||
|
||||
bool operator ==(const Utf8String &first, const char *second)
|
||||
bool operator==(const Utf8String &first, const char *second)
|
||||
{
|
||||
return first.byteArray == second;
|
||||
}
|
||||
|
||||
bool operator <(const Utf8String &first, const Utf8String &second)
|
||||
bool operator<(const Utf8String &first, const Utf8String &second)
|
||||
{
|
||||
if (first.byteSize() == second.byteSize())
|
||||
return first.byteArray < second.byteArray;
|
||||
|
@@ -43,12 +43,12 @@ class SQLITE_EXPORT Utf8String
|
||||
{
|
||||
friend class Utf8StringVector;
|
||||
|
||||
friend SQLITE_EXPORT const Utf8String operator +(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT const Utf8String operator+(const Utf8String &first, const Utf8String &second);
|
||||
|
||||
friend SQLITE_EXPORT bool operator !=(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT bool operator ==(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT bool operator ==(const Utf8String &first, const char *second);
|
||||
friend SQLITE_EXPORT bool operator <(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT bool operator!=(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT bool operator==(const Utf8String &first, const Utf8String &second);
|
||||
friend SQLITE_EXPORT bool operator==(const Utf8String &first, const char *second);
|
||||
friend SQLITE_EXPORT bool operator<(const Utf8String &first, const Utf8String &second);
|
||||
|
||||
friend SQLITE_EXPORT QDataStream &operator<<(QDataStream &datastream, const Utf8String &text);
|
||||
friend SQLITE_EXPORT QDataStream &operator>>(QDataStream &datastream, Utf8String &text);
|
||||
@@ -103,12 +103,12 @@ private:
|
||||
QByteArray byteArray;
|
||||
};
|
||||
|
||||
SQLITE_EXPORT const Utf8String operator +(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT const Utf8String operator+(const Utf8String &first, const Utf8String &second);
|
||||
|
||||
SQLITE_EXPORT bool operator !=(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT bool operator ==(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT bool operator ==(const Utf8String &first, const char *second);
|
||||
SQLITE_EXPORT bool operator <(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT bool operator!=(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT bool operator==(const Utf8String &first, const Utf8String &second);
|
||||
SQLITE_EXPORT bool operator==(const Utf8String &first, const char *second);
|
||||
SQLITE_EXPORT bool operator<(const Utf8String &first, const Utf8String &second);
|
||||
|
||||
SQLITE_EXPORT QDataStream &operator<<(QDataStream &datastream, const Utf8String &text);
|
||||
SQLITE_EXPORT QDataStream &operator>>(QDataStream &datastream, Utf8String &text);
|
||||
|
@@ -56,7 +56,7 @@ CXCodeCompleteResults *ClangCodeCompleteResults::data() const
|
||||
return cxCodeCompleteResults;
|
||||
}
|
||||
|
||||
ClangCodeCompleteResults &ClangCodeCompleteResults::operator =(ClangCodeCompleteResults &&clangCodeCompleteResults)
|
||||
ClangCodeCompleteResults &ClangCodeCompleteResults::operator=(ClangCodeCompleteResults &&clangCodeCompleteResults)
|
||||
{
|
||||
swap(cxCodeCompleteResults, clangCodeCompleteResults.cxCodeCompleteResults);
|
||||
|
||||
|
@@ -45,10 +45,10 @@ public:
|
||||
~ClangCodeCompleteResults();
|
||||
|
||||
ClangCodeCompleteResults(const ClangCodeCompleteResults &ClangCodeCompleteResults) = delete;
|
||||
const ClangCodeCompleteResults &operator =(const ClangCodeCompleteResults &ClangCodeCompleteResults) = delete;
|
||||
const ClangCodeCompleteResults &operator=(const ClangCodeCompleteResults &ClangCodeCompleteResults) = delete;
|
||||
|
||||
ClangCodeCompleteResults(ClangCodeCompleteResults &&ClangCodeCompleteResults);
|
||||
ClangCodeCompleteResults &operator =(ClangCodeCompleteResults &&ClangCodeCompleteResults);
|
||||
ClangCodeCompleteResults &operator=(ClangCodeCompleteResults &&ClangCodeCompleteResults);
|
||||
|
||||
bool isNull() const;
|
||||
|
||||
|
@@ -49,7 +49,7 @@ bool ClangString::isNull() const
|
||||
return cxString.data == nullptr;
|
||||
}
|
||||
|
||||
ClangString &ClangString::operator =(ClangString &&clangString)
|
||||
ClangString &ClangString::operator=(ClangString &&clangString)
|
||||
{
|
||||
cxString = std::move(clangString.cxString);
|
||||
clangString.cxString.data = nullptr;
|
||||
|
@@ -44,10 +44,10 @@ public:
|
||||
~ClangString();
|
||||
|
||||
ClangString(const ClangString &clangString) = delete;
|
||||
const ClangString &operator =(const ClangString &clangString) = delete;
|
||||
const ClangString &operator=(const ClangString &clangString) = delete;
|
||||
|
||||
ClangString(ClangString &&clangString);
|
||||
ClangString &operator =(ClangString &&clangString);
|
||||
ClangString &operator=(ClangString &&clangString);
|
||||
|
||||
operator Utf8String() const;
|
||||
|
||||
|
@@ -45,10 +45,10 @@ public:
|
||||
CodeCompletionsExtractor(CXCodeCompleteResults *cxCodeCompleteResults);
|
||||
|
||||
CodeCompletionsExtractor(CodeCompletionsExtractor&) = delete;
|
||||
CodeCompletionsExtractor &operator =(CodeCompletionsExtractor&) = delete;
|
||||
CodeCompletionsExtractor &operator=(CodeCompletionsExtractor&) = delete;
|
||||
|
||||
CodeCompletionsExtractor(CodeCompletionsExtractor&&) = delete;
|
||||
CodeCompletionsExtractor &operator =(CodeCompletionsExtractor&&) = delete;
|
||||
CodeCompletionsExtractor &operator=(CodeCompletionsExtractor&&) = delete;
|
||||
|
||||
bool next();
|
||||
bool peek(const Utf8String &name);
|
||||
|
@@ -84,14 +84,14 @@ ProjectPart::ProjectPart(const ProjectPartContainer &projectContainer)
|
||||
|
||||
ProjectPart::~ProjectPart() = default;
|
||||
ProjectPart::ProjectPart(const ProjectPart &) = default;
|
||||
ProjectPart &ProjectPart::operator =(const ProjectPart &) = default;
|
||||
ProjectPart &ProjectPart::operator=(const ProjectPart &) = default;
|
||||
|
||||
ProjectPart::ProjectPart(ProjectPart &&other)
|
||||
: d(std::move(other.d))
|
||||
{
|
||||
}
|
||||
|
||||
ProjectPart &ProjectPart::operator =(ProjectPart &&other)
|
||||
ProjectPart &ProjectPart::operator=(ProjectPart &&other)
|
||||
{
|
||||
d = std::move(other.d);
|
||||
|
||||
@@ -149,7 +149,7 @@ void ProjectPart::updateLastChangeTimePoint()
|
||||
d->lastChangeTimePoint = std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
bool operator ==(const ProjectPart &first, const ProjectPart &second)
|
||||
bool operator==(const ProjectPart &first, const ProjectPart &second)
|
||||
{
|
||||
return first.projectPartId() == second.projectPartId();
|
||||
}
|
||||
|
@@ -53,10 +53,10 @@ public:
|
||||
~ProjectPart();
|
||||
|
||||
ProjectPart(const ProjectPart &project);
|
||||
ProjectPart &operator =(const ProjectPart &project);
|
||||
ProjectPart &operator=(const ProjectPart &project);
|
||||
|
||||
ProjectPart(ProjectPart &&project);
|
||||
ProjectPart &operator =(ProjectPart &&project);
|
||||
ProjectPart &operator=(ProjectPart &&project);
|
||||
|
||||
void clearProjectPartId();
|
||||
|
||||
@@ -78,7 +78,7 @@ private:
|
||||
std::shared_ptr<ProjectPartData> d;
|
||||
};
|
||||
|
||||
bool operator ==(const ProjectPart &first, const ProjectPart &second);
|
||||
bool operator==(const ProjectPart &first, const ProjectPart &second);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
||||
|
@@ -207,21 +207,21 @@ CXUnsavedFile *TranslationUnit::cxUnsavedFiles() const
|
||||
TranslationUnit::~TranslationUnit() = default;
|
||||
|
||||
TranslationUnit::TranslationUnit(const TranslationUnit &) = default;
|
||||
TranslationUnit &TranslationUnit::operator =(const TranslationUnit &) = default;
|
||||
TranslationUnit &TranslationUnit::operator=(const TranslationUnit &) = default;
|
||||
|
||||
TranslationUnit::TranslationUnit(TranslationUnit &&other)
|
||||
: d(std::move(other.d))
|
||||
{
|
||||
}
|
||||
|
||||
TranslationUnit &TranslationUnit::operator =(TranslationUnit &&other)
|
||||
TranslationUnit &TranslationUnit::operator=(TranslationUnit &&other)
|
||||
{
|
||||
d = std::move(other.d);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool operator ==(const TranslationUnit &first, const TranslationUnit &second)
|
||||
bool operator==(const TranslationUnit &first, const TranslationUnit &second)
|
||||
{
|
||||
return first.filePath() == second.filePath() && first.projectPartId() == second.projectPartId();
|
||||
}
|
||||
|
@@ -65,10 +65,10 @@ public:
|
||||
~TranslationUnit();
|
||||
|
||||
TranslationUnit(const TranslationUnit &cxTranslationUnit);
|
||||
TranslationUnit &operator =(const TranslationUnit &cxTranslationUnit);
|
||||
TranslationUnit &operator=(const TranslationUnit &cxTranslationUnit);
|
||||
|
||||
TranslationUnit(TranslationUnit &&cxTranslationUnit);
|
||||
TranslationUnit &operator =(TranslationUnit &&cxTranslationUnit);
|
||||
TranslationUnit &operator=(TranslationUnit &&cxTranslationUnit);
|
||||
|
||||
bool isNull() const;
|
||||
|
||||
@@ -96,7 +96,7 @@ private:
|
||||
mutable std::shared_ptr<TranslationUnitData> d;
|
||||
};
|
||||
|
||||
bool operator ==(const TranslationUnit &first, const TranslationUnit &second);
|
||||
bool operator==(const TranslationUnit &first, const TranslationUnit &second);
|
||||
|
||||
} // namespace CodeModelBackEnd
|
||||
|
||||
|
@@ -36,12 +36,12 @@
|
||||
|
||||
namespace CodeModelBackEnd {
|
||||
|
||||
bool operator ==(const FileContainer &fileContainer, const TranslationUnit &translationUnit)
|
||||
bool operator==(const FileContainer &fileContainer, const TranslationUnit &translationUnit)
|
||||
{
|
||||
return fileContainer.filePath() == translationUnit.filePath() && fileContainer.projectPartId() == translationUnit.projectPartId();
|
||||
}
|
||||
|
||||
bool operator ==(const TranslationUnit &translationUnit, const FileContainer &fileContainer)
|
||||
bool operator==(const TranslationUnit &translationUnit, const FileContainer &fileContainer)
|
||||
{
|
||||
return fileContainer == translationUnit;
|
||||
}
|
||||
|
@@ -67,14 +67,14 @@ UnsavedFiles::UnsavedFiles()
|
||||
UnsavedFiles::~UnsavedFiles() = default;
|
||||
|
||||
UnsavedFiles::UnsavedFiles(const UnsavedFiles &) = default;
|
||||
UnsavedFiles &UnsavedFiles::operator =(const UnsavedFiles &) = default;
|
||||
UnsavedFiles &UnsavedFiles::operator=(const UnsavedFiles &) = default;
|
||||
|
||||
UnsavedFiles::UnsavedFiles(UnsavedFiles &&other)
|
||||
: d(std::move(other.d))
|
||||
{
|
||||
}
|
||||
|
||||
UnsavedFiles &UnsavedFiles::operator =(UnsavedFiles &&other)
|
||||
UnsavedFiles &UnsavedFiles::operator=(UnsavedFiles &&other)
|
||||
{
|
||||
d = std::move(other.d);
|
||||
|
||||
|
@@ -55,10 +55,10 @@ public:
|
||||
~UnsavedFiles();
|
||||
|
||||
UnsavedFiles(const UnsavedFiles &unsavedFiles);
|
||||
UnsavedFiles &operator =(const UnsavedFiles &unsavedFiles);
|
||||
UnsavedFiles &operator=(const UnsavedFiles &unsavedFiles);
|
||||
|
||||
UnsavedFiles(UnsavedFiles &&unsavedFiles);
|
||||
UnsavedFiles &operator =(UnsavedFiles &&unsavedFiles);
|
||||
UnsavedFiles &operator=(UnsavedFiles &&unsavedFiles);
|
||||
|
||||
void createOrUpdate(const QVector<FileContainer> &fileContainers);
|
||||
void remove(const QVector<FileContainer> &fileContainers);
|
||||
|
@@ -47,7 +47,7 @@ using ::testing::Gt;
|
||||
|
||||
namespace {
|
||||
|
||||
bool operator ==(const CodeModelBackEnd::FileContainer &fileContainer, const CXUnsavedFile &cxUnsavedFile)
|
||||
bool operator==(const CodeModelBackEnd::FileContainer &fileContainer, const CXUnsavedFile &cxUnsavedFile)
|
||||
{
|
||||
return fileContainer.filePath() == Utf8String::fromUtf8(cxUnsavedFile.Filename)
|
||||
&& fileContainer.unsavedFileContent() == Utf8String(cxUnsavedFile.Contents, cxUnsavedFile.Length);
|
||||
|
Reference in New Issue
Block a user