-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters