[Lldb-commits] [lldb] d743236 - [lldb] Remove indentation before help output.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 15 09:27:26 PDT 2020


Author: Jonas Devlieghere
Date: 2020-06-15T09:27:17-07:00
New Revision: d74323606d9c618a2a7c269b9ba3ffefa660cdc2

URL: https://github.com/llvm/llvm-project/commit/d74323606d9c618a2a7c269b9ba3ffefa660cdc2
DIFF: https://github.com/llvm/llvm-project/commit/d74323606d9c618a2a7c269b9ba3ffefa660cdc2.diff

LOG: [lldb] Remove indentation before help output.

This patch remove the indentation before the command help output.
Supposedly it was meant to be aligned with the different subcommands.

Differential revision: https://reviews.llvm.org/D81783

Added: 
    

Modified: 
    lldb/source/Interpreter/CommandObject.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 64a46e3f14f0..538f7a1ba693 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -849,12 +849,11 @@ void CommandObject::GenerateHelpText(CommandReturnObject &result) {
 
 void CommandObject::GenerateHelpText(Stream &output_strm) {
   CommandInterpreter &interpreter = GetCommandInterpreter();
+  std::string help_text(GetHelp());
   if (WantsRawCommandString()) {
-    std::string help_text(GetHelp());
     help_text.append("  Expects 'raw' input (see 'help raw-input'.)");
-    interpreter.OutputFormattedHelpText(output_strm, "", "", help_text, 1);
-  } else
-    interpreter.OutputFormattedHelpText(output_strm, "", "", GetHelp(), 1);
+  }
+  interpreter.OutputFormattedHelpText(output_strm, "", help_text);
   output_strm << "\nSyntax: " << GetSyntax() << "\n";
   Options *options = GetOptions();
   if (options != nullptr) {


        


More information about the lldb-commits mailing list