diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
| commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
| tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /source/Interpreter/OptionGroupPlatform.cpp | |
| parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) | |
Notes
Diffstat (limited to 'source/Interpreter/OptionGroupPlatform.cpp')
| -rw-r--r-- | source/Interpreter/OptionGroupPlatform.cpp | 22 | 
1 files changed, 9 insertions, 13 deletions
diff --git a/source/Interpreter/OptionGroupPlatform.cpp b/source/Interpreter/OptionGroupPlatform.cpp index 47974276c8c0d..5858fcc4aa482 100644 --- a/source/Interpreter/OptionGroupPlatform.cpp +++ b/source/Interpreter/OptionGroupPlatform.cpp @@ -9,10 +9,6 @@  #include "lldb/Interpreter/OptionGroupPlatform.h" -// C Includes -// C++ Includes -// Other libraries and framework includes -// Project includes  #include "lldb/Host/OptionParser.h"  #include "lldb/Interpreter/CommandInterpreter.h"  #include "lldb/Target/Platform.h" @@ -65,21 +61,21 @@ void OptionGroupPlatform::OptionParsingStarting(    m_os_version = llvm::VersionTuple();  } -static OptionDefinition g_option_table[] = { +static constexpr OptionDefinition g_option_table[] = {      {LLDB_OPT_SET_ALL, false, "platform", 'p', OptionParser::eRequiredArgument, -     nullptr, nullptr, 0, eArgTypePlatform, "Specify name of the platform to " -                                            "use for this target, creating the " -                                            "platform if necessary."}, +     nullptr, {}, 0, eArgTypePlatform, "Specify name of the platform to " +                                       "use for this target, creating the " +                                       "platform if necessary."},      {LLDB_OPT_SET_ALL, false, "version", 'v', OptionParser::eRequiredArgument, -     nullptr, nullptr, 0, eArgTypeNone, +     nullptr, {}, 0, eArgTypeNone,       "Specify the initial SDK version to use prior to connecting."},      {LLDB_OPT_SET_ALL, false, "build", 'b', OptionParser::eRequiredArgument, -     nullptr, nullptr, 0, eArgTypeNone, +     nullptr, {}, 0, eArgTypeNone,       "Specify the initial SDK build number."},      {LLDB_OPT_SET_ALL, false, "sysroot", 'S', OptionParser::eRequiredArgument, -     nullptr, nullptr, 0, eArgTypeFilename, "Specify the SDK root directory " -                                            "that contains a root of all " -                                            "remote system files."}}; +     nullptr, {}, 0, eArgTypeFilename, "Specify the SDK root directory " +                                       "that contains a root of all " +                                       "remote system files."}};  llvm::ArrayRef<OptionDefinition> OptionGroupPlatform::GetDefinitions() {    llvm::ArrayRef<OptionDefinition> result(g_option_table);  | 
