[Lldb-commits] [PATCH] D33998: Add pretty-printer for wait(2) statuses and modernize the code handling them

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 13 03:44:55 PDT 2017


labath marked 2 inline comments as done.
labath added inline comments.


================
Comment at: source/Host/common/Host.cpp:1010
+    static constexpr char type[] = "WXS";
+    OS << formatv("{0}{1:x-2}", type[WS.type], WS.status);
+    return;
----------------
eugene wrote:
>  type[WS.type] seems to be a somewhat unnecessary hack. I would use a simple switch here.
I wouldn't call it a hack. :) More like data-oriented programming... :P
I wrote it like this because fully
clang-formatted
switches
tend
to
be
loooooong
.

But I don't care about it too much.


https://reviews.llvm.org/D33998





More information about the lldb-commits mailing list