[Lldb-commits] [PATCH] D96947: [lldb] Prevent double new lines behind errors/warning/messages from LLDB commands

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 19 15:09:03 PST 2021


JDevlieghere added inline comments.


================
Comment at: lldb/source/Interpreter/CommandReturnObject.cpp:93
     return;
-  GetOutputStream() << in_string << "\n";
+  GetOutputStream() << in_string;
+  if (!in_string.endswith("\n"))
----------------
How about rstripping any trailing `\n` and then always adding one? 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96947/new/

https://reviews.llvm.org/D96947



More information about the lldb-commits mailing list