summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-02 00:18:44 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-02 00:18:44 +0000
commite063eccc19c51572db67cf0689b594b3e5dc4d9e (patch)
tree3a69932e0e8b111d36d4fa6a198b717c790ebd78 /lldb/source/Interpreter/OptionGroupWatchpoint.cpp
parent12961ff0fad91d9e51329a1e59213499e33eb3a0 (diff)
downloadbcm5719-llvm-e063eccc19c51572db67cf0689b594b3e5dc4d9e.tar.gz
bcm5719-llvm-e063eccc19c51572db67cf0689b594b3e5dc4d9e.zip
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
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupWatchpoint.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupWatchpoint.cpp45
1 files changed, 37 insertions, 8 deletions
diff --git a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
index 28e6b817fcc..e86fd22c49e 100644
--- a/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
+++ b/lldb/source/Interpreter/OptionGroupWatchpoint.cpp
@@ -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,
OpenPOWER on IntegriCloud