From 26cac3af0b83c59a201d91c96e2810e3b2554704 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Sat, 20 Feb 2016 00:58:29 +0000 Subject: Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes. llvm-svn: 261389 --- lldb/source/Commands/CommandObjectSyntax.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp') 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", -- cgit v1.1