diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-20 00:58:29 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-02-20 00:58:29 +0000 |
commit | 26cac3af0b83c59a201d91c96e2810e3b2554704 (patch) | |
tree | ef7469f1fc2f8230b4d400b71b92953817ca0884 /lldb/source/Commands/CommandObjectSyntax.cpp | |
parent | 7a0d7d6be974a4cc7d960b8be66a49dda12cc90c (diff) | |
download | llvm-26cac3af0b83c59a201d91c96e2810e3b2554704.zip llvm-26cac3af0b83c59a201d91c96e2810e3b2554704.tar.gz llvm-26cac3af0b83c59a201d91c96e2810e3b2554704.tar.bz2 |
Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes.
llvm-svn: 261389
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSyntax.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lldb/source/Commands/CommandObjectSyntax.cpp b/lldb/source/Commands/CommandObjectSyntax.cpp index e9fa084..12bfce3 100644 --- a/lldb/source/Commands/CommandObjectSyntax.cpp +++ b/lldb/source/Commands/CommandObjectSyntax.cpp @@ -7,15 +7,13 @@ // //===----------------------------------------------------------------------===// -#include "CommandObjectSyntax.h" - // C Includes // C++ Includes // Other libraries and framework includes // Project includes +#include "CommandObjectSyntax.h" #include "lldb/Interpreter/Args.h" #include "lldb/Interpreter/Options.h" - #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" #include "lldb/Interpreter/CommandObjectMultiword.h" @@ -47,10 +45,7 @@ CommandObjectSyntax::CommandObjectSyntax (CommandInterpreter &interpreter) : m_arguments.push_back (arg); } -CommandObjectSyntax::~CommandObjectSyntax() -{ -} - +CommandObjectSyntax::~CommandObjectSyntax() = default; bool CommandObjectSyntax::DoExecute (Args& command, CommandReturnObject &result) @@ -82,10 +77,10 @@ CommandObjectSyntax::DoExecute (Args& command, CommandReturnObject &result) } } - if (all_okay && (cmd_obj != NULL)) + if (all_okay && (cmd_obj != nullptr)) { Stream &output_strm = result.GetOutputStream(); - if (cmd_obj->GetOptions() != NULL) + if (cmd_obj->GetOptions() != nullptr) { output_strm.Printf ("\nSyntax: %s\n", cmd_obj->GetSyntax()); output_strm.Printf ("(Try 'help %s' for more information on command options syntax.)\n", |