diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-12-15 01:33:19 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2015-12-15 01:33:19 +0000 |
commit | e65b2cf2975891b83ecbfdc1d92fb89f248129e2 (patch) | |
tree | 02fb044f608cd6da5c3728fd235cc39c304723e0 /lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp | |
parent | 162b68d86f36bcb19875d0e83cadecd86380abeb (diff) | |
download | bcm5719-llvm-e65b2cf2975891b83ecbfdc1d92fb89f248129e2.tar.gz bcm5719-llvm-e65b2cf2975891b83ecbfdc1d92fb89f248129e2.zip |
Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/.
Simplify smart pointers checks in conditions. Other minor fixes.
llvm-svn: 255598
Diffstat (limited to 'lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp b/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp index 53fabd2464e..df23edc0fd1 100644 --- a/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp +++ b/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp @@ -1,4 +1,4 @@ -//===-- ThreadPlanCallFunctionUsingABI.cpp ------------------------------*- C++ -*-===// +//===-- ThreadPlanCallFunctionUsingABI.cpp ----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,13 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "lldb/Target/ThreadPlanCallFunctionUsingABI.h" - // C Includes // C++ Includes // Other libraries and framework includes - // Project includes +#include "lldb/Target/ThreadPlanCallFunctionUsingABI.h" #include "lldb/Core/Address.h" #include "lldb/Core/Log.h" #include "lldb/Core/Stream.h" @@ -57,10 +55,7 @@ ThreadPlanCallFunctionUsingABI::ThreadPlanCallFunctionUsingABI (Thread &thread, m_valid = true; } -ThreadPlanCallFunctionUsingABI::~ThreadPlanCallFunctionUsingABI() -{ - -} +ThreadPlanCallFunctionUsingABI::~ThreadPlanCallFunctionUsingABI() = default; void ThreadPlanCallFunctionUsingABI::GetDescription(Stream *s, DescriptionLevel level) @@ -80,7 +75,7 @@ void ThreadPlanCallFunctionUsingABI::SetReturnValue() { ProcessSP process_sp(m_thread.GetProcess()); - const ABI *abi = process_sp ? process_sp->GetABI().get() : NULL; + const ABI *abi = process_sp ? process_sp->GetABI().get() : nullptr; // Ask the abi for the return value if (abi) |