Skip to content

Commit fd48f30

Browse files
committed
Re-add path normalization that was removed in 315561c
1 parent f50ce31 commit fd48f30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang-tools-extra/clang-tidy/tool/run-clang-tidy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,10 @@ async def main() -> None:
522522
# Load the database and extract all files.
523523
with open(os.path.join(build_path, db_path)) as f:
524524
database = json.load(f)
525-
files = {os.path.abspath(os.path.join(e["directory"], e["file"])) for e in database}
525+
files = {
526+
os.path.normpath(os.path.abspath(os.path.join(e["directory"], e["file"])))
527+
for e in database
528+
}
526529
number_files_in_database = len(files)
527530

528531
# Filter source files from compilation database.

0 commit comments

Comments
 (0)