[clang-tidy][NFC] let multi-line string first line does not wrap (#160019)
add `\` to avoid a blank first line
GitOrigin-RevId: 6884cc7e77631a73a151bcd9be69a75e4edb5fcb
diff --git a/clang-tidy/add_new_check.py b/clang-tidy/add_new_check.py
index 0035da2..dfa429e 100755
--- a/clang-tidy/add_new_check.py
+++ b/clang-tidy/add_new_check.py
@@ -90,7 +90,7 @@
+ "_H"
)
f.write(
- """
+ """\
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -142,7 +142,7 @@
print("Creating %s..." % filename)
with io.open(filename, "w", encoding="utf8", newline="\n") as f:
f.write(
- """
+ """\
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -347,7 +347,8 @@
print("Creating %s..." % filename)
with io.open(filename, "w", encoding="utf8", newline="\n") as f:
f.write(
- """// RUN: %%check_clang_tidy %(standard)s%%s %(check_name_dashes)s %%t
+ """\
+// RUN: %%check_clang_tidy %(standard)s%%s %(check_name_dashes)s %%t
// FIXME: Add something that triggers the check here.
void f();