[clang-tidy] Remove addition of emacs tag in checks headers (#153942)
After https://github.com/llvm/llvm-project/pull/118553, emacs tag is no longer needed in LLVM files: https://llvm.org/docs/CodingStandards.html#file-headers. This patch removes it from `add_new_check.py` lowering complexity we need to maintain.
This commit is contained in:
parent
7e9989390d
commit
378d240125
@ -89,13 +89,9 @@ def write_header(
|
|||||||
+ check_name_camel.upper()
|
+ check_name_camel.upper()
|
||||||
+ "_H"
|
+ "_H"
|
||||||
)
|
)
|
||||||
f.write("//===--- ")
|
|
||||||
f.write(os.path.basename(filename))
|
|
||||||
f.write(" - clang-tidy ")
|
|
||||||
f.write("-" * max(0, 42 - len(os.path.basename(filename))))
|
|
||||||
f.write("*- C++ -*-===//")
|
|
||||||
f.write(
|
f.write(
|
||||||
"""
|
"""
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
@ -145,13 +141,9 @@ def write_implementation(
|
|||||||
filename = os.path.join(module_path, check_name_camel) + ".cpp"
|
filename = os.path.join(module_path, check_name_camel) + ".cpp"
|
||||||
print("Creating %s..." % filename)
|
print("Creating %s..." % filename)
|
||||||
with io.open(filename, "w", encoding="utf8", newline="\n") as f:
|
with io.open(filename, "w", encoding="utf8", newline="\n") as f:
|
||||||
f.write("//===--- ")
|
|
||||||
f.write(os.path.basename(filename))
|
|
||||||
f.write(" - clang-tidy ")
|
|
||||||
f.write("-" * max(0, 51 - len(os.path.basename(filename))))
|
|
||||||
f.write("-===//")
|
|
||||||
f.write(
|
f.write(
|
||||||
"""
|
"""
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user