diff options
author | Mike Crowe <mac@mcrowe.com> | 2023-07-11 18:57:36 +0000 |
---|---|---|
committer | Piotr Zegar <me@piotrzegar.pl> | 2023-07-11 19:22:31 +0000 |
commit | 2ce765eb2f4feb7555d1416842c542743990b004 (patch) | |
tree | 720f558573a71d6c35b4998044f86d88163f3e27 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | d7e79bd7d4fe326625e06d7ed251092a19e80c42 (diff) | |
download | llvm-2ce765eb2f4feb7555d1416842c542743990b004.zip llvm-2ce765eb2f4feb7555d1416842c542743990b004.tar.gz llvm-2ce765eb2f4feb7555d1416842c542743990b004.tar.bz2 |
[clang-tidy] Don't split \r\n in modernize-use-std-print check
When given:
printf("Hello\r\n");
it's clearer to leave the CRLF intact and convert this to:
std::print("Hello\r\n");
than to remove the trailing newline and convert it to:
std::println("Hello\r");
Update the documentation to match, and clarify the situations for using
println vs print which weren't previously explained.
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D154788
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions