Reorder some IPC members

This commit is contained in:
Jacob Dufault 2018-02-27 23:07:53 -08:00
parent 7a81a5dbc5
commit e44109aee9
2 changed files with 7 additions and 8 deletions

View File

@ -87,13 +87,13 @@ const char* IpcIdToString(IpcId id) {
case IpcId::CqueryRandom:
return "$cquery/random";
case IpcId::Unknown:
return "$unknown";
case IpcId::CqueryIndexFile:
return "$cquery/indexFile";
case IpcId::CqueryWait:
return "$cquery/wait";
case IpcId::Unknown:
return "$unknown";
}
CQUERY_UNREACHABLE("missing IpcId string name");

View File

@ -58,13 +58,12 @@ enum class IpcId : int {
CqueryDerived, // Show all derived types/methods.
CqueryRandom, // Show random definition.
// Messages for testing.
CqueryIndexFile, // Index the given file contents.
CqueryWait, // Wait until all cquery threads are idle.
// Internal implementation detail.
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_REFLECT_TYPE_PROXY(IpcId)