[clang-tools-extra] [clang-tidy][NFC] Fix list.rst and add_new_check.py (PR #192228)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 05:02:02 PDT 2026


================
@@ -536,10 +536,15 @@ def format_link_alias(doc_file: Tuple[str, str]) -> str:
                 ref_begin = ""
                 ref_end = "_"
             else:
-                redirect_parts = re.search(r"^\.\./([^/]*)/([^/]*)$", match.group(1))
+                # Match either "../modernize/use-nullptr" or a same-directory
+                # redirect like "prefer-single-char-overloads".
----------------
vbvictor wrote:

Can we write "Match neighbour or current-directory"

https://github.com/llvm/llvm-project/pull/192228


More information about the cfe-commits mailing list