[Lldb-commits] [PATCH] D15355: Add failure paths to a few JSONNumber members

Muhammad Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 8 15:05:48 PST 2015


omjavaid created this revision.
omjavaid added a reviewer: tberghammer.
omjavaid added a subscriber: lldb-commits.

This patch updates GetAsUnsigned(), GetAsSigned(), and GetAsDouble() JSONNumber functions to add failure check.

The previous code was generating compiler warnings for not being able to provide a return path for all possibilities.



http://reviews.llvm.org/D15355

Files:
  include/lldb/Utility/JSON.h
  source/Utility/JSON.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15355.42233.patch
Type: text/x-patch
Size: 2778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151208/bb84f8a3/attachment.bin>


More information about the lldb-commits mailing list