Improve the functionality of JSONNumber
- Add support for representing signed integers
- Add new constructors taking any signed or unsigned integer types
Paths
| Differential D15187
Improve the functionality of JSONNumber ClosedPublic Authored by tberghammer on Dec 3 2015, 5:45 AM.
Details Summary Improve the functionality of JSONNumber
Diff Detail
Event Timelinetberghammer updated this object. Comment Actions Everything looks good, just wondering why we need the template code? See inlined comments.
Comment Actions IIU my C++ correctly, this code covers neither int64_t nor double; it covers the unsigned variety of int64 - as well as any other unsigned integer type. The main advantage (other than not relying on implicit promotions) would be that if someone writes their new integral data type (BigNum), and mark it with the appropriate traits, it would Just Work
clayborg edited edge metadata. Comment ActionsOk, thanks for the explanation. You might add a comment saying something like you just said above the template stuff so people can see why it is needed. This revision is now accepted and ready to land.Dec 3 2015, 9:54 AM Closed by commit rL254715: Improve the functionality of JSONNumber (authored by tberghammer). · Explain WhyDec 4 2015, 5:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 41868 lldb/trunk/include/lldb/Utility/JSON.h
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/trunk/source/Utility/JSON.cpp
|