mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
Format OptionEnumValueElement (NFC)
Reformat OptionEnumValueElement to make it easier to distinguish between its fields. This also removes the need to disable clang-format for these arrays. Differential revision: https://reviews.llvm.org/D65489 llvm-svn: 367638
This commit is contained in:
@@ -16,16 +16,45 @@ using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
|
||||
static constexpr OptionEnumValueElement g_watch_type[] = {
|
||||
{OptionGroupWatchpoint::eWatchRead, "read", "Watch for read"},
|
||||
{OptionGroupWatchpoint::eWatchWrite, "write", "Watch for write"},
|
||||
{OptionGroupWatchpoint::eWatchReadWrite, "read_write",
|
||||
"Watch for read/write"} };
|
||||
{
|
||||
OptionGroupWatchpoint::eWatchRead,
|
||||
"read",
|
||||
"Watch for read",
|
||||
},
|
||||
{
|
||||
OptionGroupWatchpoint::eWatchWrite,
|
||||
"write",
|
||||
"Watch for write",
|
||||
},
|
||||
{
|
||||
OptionGroupWatchpoint::eWatchReadWrite,
|
||||
"read_write",
|
||||
"Watch for read/write",
|
||||
},
|
||||
};
|
||||
|
||||
static constexpr OptionEnumValueElement g_watch_size[] = {
|
||||
{1, "1", "Watch for byte size of 1"},
|
||||
{2, "2", "Watch for byte size of 2"},
|
||||
{4, "4", "Watch for byte size of 4"},
|
||||
{8, "8", "Watch for byte size of 8"} };
|
||||
{
|
||||
1,
|
||||
"1",
|
||||
"Watch for byte size of 1",
|
||||
},
|
||||
{
|
||||
2,
|
||||
"2",
|
||||
"Watch for byte size of 2",
|
||||
},
|
||||
{
|
||||
4,
|
||||
"4",
|
||||
"Watch for byte size of 4",
|
||||
},
|
||||
{
|
||||
8,
|
||||
"8",
|
||||
"Watch for byte size of 8",
|
||||
},
|
||||
};
|
||||
|
||||
static constexpr OptionDefinition g_option_table[] = {
|
||||
{LLDB_OPT_SET_1, false, "watch", 'w', OptionParser::eRequiredArgument,
|
||||
|
||||
Reference in New Issue
Block a user