Modernize UUID class
authorPavel Labath <labath@google.com>
Thu, 21 Jun 2018 15:07:43 +0000 (15:07 +0000)
committerPavel Labath <labath@google.com>
Thu, 21 Jun 2018 15:07:43 +0000 (15:07 +0000)
commit470b286ee5669019a83b2e2ffae845ee44369fbf
tree6bb572eb8d9527ee580308d25363a284a0330efa
parent084d360f6984df29d0ea2bdf8fea1f1d97de2858
Modernize UUID class

Instead of a separate GetBytes + GetByteSize methods I introduce a
single GetBytes method returning an ArrayRef.

This is NFC cleanup now, but it should make handling arbitrarily-sized
UUIDs cleaner, should we choose to go that way. I also took the
opportunity to add some unit tests for this class.

llvm-svn: 335244
lldb/include/lldb/Utility/UUID.h
lldb/source/API/SBModule.cpp
lldb/source/API/SBModuleSpec.cpp
lldb/source/Interpreter/OptionValueUUID.cpp
lldb/source/Utility/UUID.cpp
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/UUIDTest.cpp [new file with mode: 0644]