mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 13:48:04 +00:00
Reorder some IPC members
This commit is contained in:
parent
7a81a5dbc5
commit
e44109aee9
@ -87,13 +87,13 @@ const char* IpcIdToString(IpcId id) {
|
|||||||
case IpcId::CqueryRandom:
|
case IpcId::CqueryRandom:
|
||||||
return "$cquery/random";
|
return "$cquery/random";
|
||||||
|
|
||||||
case IpcId::Unknown:
|
|
||||||
return "$unknown";
|
|
||||||
|
|
||||||
case IpcId::CqueryIndexFile:
|
case IpcId::CqueryIndexFile:
|
||||||
return "$cquery/indexFile";
|
return "$cquery/indexFile";
|
||||||
case IpcId::CqueryWait:
|
case IpcId::CqueryWait:
|
||||||
return "$cquery/wait";
|
return "$cquery/wait";
|
||||||
|
|
||||||
|
case IpcId::Unknown:
|
||||||
|
return "$unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
CQUERY_UNREACHABLE("missing IpcId string name");
|
CQUERY_UNREACHABLE("missing IpcId string name");
|
||||||
|
@ -58,13 +58,12 @@ enum class IpcId : int {
|
|||||||
CqueryDerived, // Show all derived types/methods.
|
CqueryDerived, // Show all derived types/methods.
|
||||||
CqueryRandom, // Show random definition.
|
CqueryRandom, // Show random definition.
|
||||||
|
|
||||||
|
// Messages for testing.
|
||||||
|
CqueryIndexFile, // Index the given file contents.
|
||||||
|
CqueryWait, // Wait until all cquery threads are idle.
|
||||||
|
|
||||||
// Internal implementation detail.
|
// Internal implementation detail.
|
||||||
Unknown,
|
Unknown,
|
||||||
|
|
||||||
// Index the given file contents. Used in tests.
|
|
||||||
CqueryIndexFile,
|
|
||||||
// Wait until all cquery threads are idle. Used in tests.
|
|
||||||
CqueryWait,
|
|
||||||
};
|
};
|
||||||
MAKE_ENUM_HASHABLE(IpcId)
|
MAKE_ENUM_HASHABLE(IpcId)
|
||||||
MAKE_REFLECT_TYPE_PROXY(IpcId)
|
MAKE_REFLECT_TYPE_PROXY(IpcId)
|
||||||
|
Loading…
Reference in New Issue
Block a user