labath added inline comments.

================
Comment at: lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp:150
+  const bool line_had_lf = line.endswith("\n") && !line_had_cr_lf;
+  line = line.trim("\r\n");
+
----------------
technically, this `trim` might remove additional spurious carriage return 
characters that will not be restored correctly afterwards. What I'd do is 
replace `endswith` with `consume_back` which will also remove the suffix while 
testing for it's presence.


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D70177



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to