[Lldb-commits] [PATCH] D43884: [lldb] Extract more fields from NSException values

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 12 07:50:04 PST 2018


davide requested changes to this revision.
davide added inline comments.
This revision now requires changes to proceed.


================
Comment at: source/Plugins/Language/ObjC/NSException.cpp:161-168
+    static ConstString g___name("name");
+    static ConstString g___reason("reason");
     static ConstString g___userInfo("userInfo");
-    if (name == g___userInfo)
-      return 0;
+    static ConstString g___reserved("reserved");
+    if (name == g___name) return 0;
+    if (name == g___reason) return 1;
+    if (name == g___userInfo) return 2;
----------------
can you clang-format this and add a comment? Thanks.


https://reviews.llvm.org/D43884





More information about the lldb-commits mailing list