diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-19 19:33:46 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-19 19:33:46 +0000 |
commit | c8ecc2a9fa3c100ae1c8c3e9ce4a5db452a69206 (patch) | |
tree | 5579bb86fde482839910a24c5eab7e2cd47f0d73 /lldb/source/Commands/CommandObjectArgs.cpp | |
parent | 28cbb8616e2764340d4c583ba531e3391346025e (diff) | |
download | llvm-c8ecc2a9fa3c100ae1c8c3e9ce4a5db452a69206.zip llvm-c8ecc2a9fa3c100ae1c8c3e9ce4a5db452a69206.tar.gz llvm-c8ecc2a9fa3c100ae1c8c3e9ce4a5db452a69206.tar.bz2 |
Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes.
llvm-svn: 261356
Diffstat (limited to 'lldb/source/Commands/CommandObjectArgs.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectArgs.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lldb/source/Commands/CommandObjectArgs.cpp b/lldb/source/Commands/CommandObjectArgs.cpp index 9f22bba..206a26f 100644 --- a/lldb/source/Commands/CommandObjectArgs.cpp +++ b/lldb/source/Commands/CommandObjectArgs.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "CommandObjectArgs.h" - // C Includes // C++ Includes // Other libraries and framework includes // Project includes +#include "CommandObjectArgs.h" #include "lldb/Interpreter/Args.h" #include "lldb/Core/Debugger.h" #include "lldb/Core/Module.h" @@ -44,10 +43,7 @@ CommandObjectArgs::CommandOptions::CommandOptions (CommandInterpreter &interpret OptionParsingStarting(); } - -CommandObjectArgs::CommandOptions::~CommandOptions () -{ -} +CommandObjectArgs::CommandOptions::~CommandOptions() = default; Error CommandObjectArgs::CommandOptions::SetOptionValue (uint32_t option_idx, const char *option_arg) @@ -80,9 +76,7 @@ CommandObjectArgs::CommandObjectArgs (CommandInterpreter &interpreter) : { } -CommandObjectArgs::~CommandObjectArgs () -{ -} +CommandObjectArgs::~CommandObjectArgs() = default; Options * CommandObjectArgs::GetOptions () @@ -94,8 +88,7 @@ bool CommandObjectArgs::DoExecute (Args& args, CommandReturnObject &result) { ConstString target_triple; - - + Process *process = m_exe_ctx.GetProcessPtr(); if (!process) { @@ -263,7 +256,6 @@ CommandObjectArgs::DoExecute (Args& args, CommandReturnObject &result) OptionDefinition CommandObjectArgs::CommandOptions::g_option_table[] = { - { LLDB_OPT_SET_1, false, "debug", 'g', OptionParser::eNoArgument, NULL, NULL, 0, eArgTypeNone, "Enable verbose debug logging of the expression parsing and evaluation."}, - { 0, false, NULL, 0, 0, NULL, NULL, 0, eArgTypeNone, NULL } + { LLDB_OPT_SET_1, false, "debug", 'g', OptionParser::eNoArgument, nullptr, nullptr, 0, eArgTypeNone, "Enable verbose debug logging of the expression parsing and evaluation."}, + { 0, false, nullptr, 0, 0, nullptr, nullptr, 0, eArgTypeNone, nullptr } }; - |