llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-tidy Author: Congcong Cai (HerrCai0907) <details> <summary>Changes</summary> Fixes: #<!-- -->107846 --- Full diff: https://github.com/llvm/llvm-project/pull/107871.diff 1 Files Affected: - (modified) clang-tools-extra/clang-tidy/add_new_check.py (+2-2) ``````````diff diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index d384dbae28abbc..e366f100535357 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -17,7 +17,7 @@ import textwrap # FIXME Python 3.9: Replace typing.Tuple with builtins.tuple. -from typing import Optional, Tuple +from typing import Optional, Tuple, Match # Adapts the module's CMakelist file. Returns 'True' if it could add a new @@ -511,7 +511,7 @@ def has_auto_fix(check_name: str) -> str: return "" - def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[re.Match[str]]]: + def process_doc(doc_file: Tuple[str, str]) -> Tuple[str, Optional[Match[str]]]: check_name = doc_file[0] + "-" + doc_file[1].replace(".rst", "") with io.open(os.path.join(docs_dir, *doc_file), "r", encoding="utf8") as doc: `````````` </details> https://github.com/llvm/llvm-project/pull/107871 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits