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:
Jonas Devlieghere
2019-08-02 00:18:44 +00:00
parent 12961ff0fa
commit e063eccc19
11 changed files with 367 additions and 150 deletions

View File

@@ -31,8 +31,8 @@
#include "DynamicLoaderDarwinKernel.h"
#include <memory>
#include <algorithm>
#include <memory>
//#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"