Some FormatEntity.cpp cleanup and unit testing
authorNeal (nealsid) <nealsid@icloud.com>
Wed, 21 Apr 2021 13:11:17 +0000 (15:11 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 21 Apr 2021 13:12:59 +0000 (15:12 +0200)
commite2039142f6b196e9a491c8e0b18faa033c4d9f10
tree248a7bdec20408c55df6539b296a716d22d5b8d9
parent8e336511f18ab56cd0c8d93b5c18219df411963a
Some FormatEntity.cpp cleanup and unit testing

Just fixing a few things I noticed as I am working on another feature for format
strings in the prompt: forward decls, adding constexpr constructors, various
checks, and unit tests for FormatEntity::Parse and new Definition constructors,
etc.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D98153
lldb/include/lldb/Core/FormatEntity.h
lldb/source/Core/FormatEntity.cpp
lldb/unittests/Core/CMakeLists.txt
lldb/unittests/Core/FormatEntityTest.cpp [new file with mode: 0644]