[clang-tools-extra] [clang-tidy] Normalize windows line filter paths (PR #217038)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 4 06:04:33 PDT 2026


================
@@ -394,8 +394,10 @@ def main():
         common_clang_tidy_args.append("-warnings-as-errors=" + args.warnings_as_errors)
 
     for name in lines_by_file:
+        line_filter_name = str((Path.cwd() / name).resolve())
         line_filter_json = json.dumps(
-            [{"name": name, "lines": lines_by_file[name]}], separators=(",", ":")
+            [{"name": line_filter_name, "lines": lines_by_file[name]}],
+            separators=(",", ":"),
----------------
vbvictor wrote:

I think it is not. Or I'm missing smth

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


More information about the cfe-commits mailing list