Skip to content

Commit 021c34f

Browse files
committed
~
1 parent 855d4b5 commit 021c34f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ void printf_deceptive_newline() {
5656

5757
void printf_utf8_text() {
5858
// UNSUPPORTED: system-windows
59-
// Hex encodes U+4F60 U+597D U+4E16 U+754C (Hello world) in UTF-8
60-
printf("\xE4\xBD\xA0\xE5\xA5\xBD\xE4\xB8\x96\xE7\x95\x8C\n");
59+
printf("你好世界\n");
6160
// CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print]
6261
// CHECK-FIXES: std::println("你好世界");
6362
}
@@ -313,8 +312,7 @@ void fprintf_simple() {
313312

314313
void fprintf_utf8_text() {
315314
// UNSUPPORTED: system-windows
316-
// Hex encodes U+4F60 U+597D U+4E16 U+754C (Hello world) in UTF-8
317-
fprintf(stderr, "\xE4\xBD\xA0\xE5\xA5\xBD\xE4\xB8\x96\xE7\x95\x8C\n");
315+
fprintf(stderr, "你好世界\n");
318316
// CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'fprintf' [modernize-use-std-print]
319317
// CHECK-FIXES: std::println(stderr, "你好世界");
320318
}

0 commit comments

Comments
 (0)