From e44109aee9098b59c5a26b15c610048ae5a78797 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Tue, 27 Feb 2018 23:07:53 -0800 Subject: [PATCH] Reorder some IPC members --- src/ipc.cc | 6 +++--- src/ipc.h | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ipc.cc b/src/ipc.cc index f038a30c..f208d260 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -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"); diff --git a/src/ipc.h b/src/ipc.h index 395115a1..93a57b00 100644 --- a/src/ipc.h +++ b/src/ipc.h @@ -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)