llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-tidy Author: Baranov Victor (vbvictor) <details> <summary>Changes</summary> 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. --- Full diff: https://github.com/llvm/llvm-project/pull/153942.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/add_new_check.py (+2-10) ``````````diff diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index e366f10053535..2b51a1dc40ebc 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -89,13 +89,9 @@ def write_header( + check_name_camel.upper() + "_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( """ +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // 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" print("Creating %s..." % filename) 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( """ +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. `````````` </details> https://github.com/llvm/llvm-project/pull/153942 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits