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 <m...@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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits