Skip to content

Commit 6979ab2

Browse files
[lldb] Remove redundant control flow statements (NFC) (#141183)
1 parent c0e7a59 commit 6979ab2

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

lldb/include/lldb/Interpreter/ScriptInterpreter.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,8 @@ class ScriptInterpreter : public PluginInterface {
500500
return false;
501501
}
502502

503-
virtual void OptionParsingStartedForCommandObject(
504-
StructuredData::GenericSP cmd_obj_sp) {
505-
return;
506-
}
503+
virtual void
504+
OptionParsingStartedForCommandObject(StructuredData::GenericSP cmd_obj_sp) {}
507505

508506
virtual uint32_t
509507
GetFlagsForCommandObject(StructuredData::GenericSP cmd_obj_sp) {

lldb/include/lldb/Target/Process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class Process : public std::enable_shared_from_this<Process>,
605605

606606
/// The underlying plugin might store the low-level communication history for
607607
/// this session. Dump it into the provided stream.
608-
virtual void DumpPluginHistory(Stream &s) { return; }
608+
virtual void DumpPluginHistory(Stream &s) {}
609609

610610
/// Launch a new process.
611611
///

lldb/source/Commands/CommandObjectDiagnostics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class CommandObjectDiagnosticsDump : public CommandObjectParsed {
9696
result.GetOutputStream() << "diagnostics written to " << *directory << '\n';
9797

9898
result.SetStatus(eReturnStatusSuccessFinishResult);
99-
return;
10099
}
101100

102101
CommandOptions m_options;

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,6 @@ class CommandObjectTargetDelete : public CommandObjectParsed {
649649
result.GetOutputStream().Printf("%u targets deleted.\n",
650650
(uint32_t)num_targets_to_delete);
651651
result.SetStatus(eReturnStatusSuccessFinishResult);
652-
653-
return;
654652
}
655653

656654
OptionGroupOptions m_option_group;

lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
463463
template <typename T, typename U>
464464
void ReverseTransform(T &original_arg, U transformed_arg, Status &error) {
465465
// If U is not a PythonObject, don't touch it!
466-
return;
467466
}
468467

469468
template <typename T>

lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ void AppleDWARFIndex::GetTypes(
263263
m_module.LogMessage(log, "FindByNameAndTag()");
264264
const dw_tag_t expected_tag = context[0].tag;
265265
SearchFor(*m_apple_types_up, expected_name, callback, expected_tag);
266-
return;
267266
}
268267

269268
void AppleDWARFIndex::GetNamespaces(

0 commit comments

Comments
 (0)