[clang-tools-extra] Re-add path normalization that was removed in 315561c86778 (PR #118718)
Mike Hommey via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 15:55:53 PST 2024
https://github.com/glandium created https://github.com/llvm/llvm-project/pull/118718
None
>From fd48f30df81e533401b9eedc313547374c6e5b13 Mon Sep 17 00:00:00 2001
From: Mike Hommey <mh at glandium.org>
Date: Thu, 5 Dec 2024 08:52:57 +0900
Subject: [PATCH] Re-add path normalization that was removed in 315561c86778
---
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
index f1b934f7139e94..d4cbcd2f564cbb 100755
--- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -522,7 +522,10 @@ async def main() -> None:
# Load the database and extract all files.
with open(os.path.join(build_path, db_path)) as f:
database = json.load(f)
- files = {os.path.abspath(os.path.join(e["directory"], e["file"])) for e in database}
+ files = {
+ os.path.normpath(os.path.abspath(os.path.join(e["directory"], e["file"])))
+ for e in database
+ }
number_files_in_database = len(files)
# Filter source files from compilation database.
More information about the cfe-commits
mailing list