From e063eccc19c51572db67cf0689b594b3e5dc4d9e Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 2 Aug 2019 00:18:44 +0000 Subject: 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 --- .../Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 36 +++++++++++++++------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp') diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index 51f128f97061..790e78665165 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -31,8 +31,8 @@ #include "DynamicLoaderDarwinKernel.h" -#include #include +#include //#define ENABLE_DEBUG_PRINTF // COMMENT THIS LINE OUT PRIOR TO CHECKIN #ifdef ENABLE_DEBUG_PRINTF @@ -61,16 +61,30 @@ enum KASLRScanType { }; static constexpr OptionEnumValueElement g_kaslr_kernel_scan_enum_values[] = { - {eKASLRScanNone, "none", - "Do not read memory looking for a Darwin kernel when attaching."}, - {eKASLRScanLowgloAddresses, "basic", "Check for the Darwin kernel's load " - "addr in the lowglo page " - "(boot-args=debug) only."}, - {eKASLRScanNearPC, "fast-scan", "Scan near the pc value on attach to find " - "the Darwin kernel's load address."}, - {eKASLRScanExhaustiveScan, "exhaustive-scan", - "Scan through the entire potential address range of Darwin kernel (only " - "on 32-bit targets)."}}; + { + eKASLRScanNone, + "none", + "Do not read memory looking for a Darwin kernel when attaching.", + }, + { + eKASLRScanLowgloAddresses, + "basic", + "Check for the Darwin kernel's load addr in the lowglo page " + "(boot-args=debug) only.", + }, + { + eKASLRScanNearPC, + "fast-scan", + "Scan near the pc value on attach to find the Darwin kernel's load " + "address.", + }, + { + eKASLRScanExhaustiveScan, + "exhaustive-scan", + "Scan through the entire potential address range of Darwin kernel " + "(only on 32-bit targets).", + }, +}; #define LLDB_PROPERTIES_dynamicloaderdarwinkernel #include "DynamicLoaderDarwinKernelProperties.inc" -- cgit v1.2.3