Skip to content

Commit 6653beb

Browse files
committed
clang-tidy: Normalize database compilation path
This is needed when building with meson because the paths may contain `..` components. Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
1 parent 1d0e751 commit 6653beb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import json
44
import os
5+
import sys
56

67
import git
78
import yaml
@@ -43,6 +44,6 @@ def index_compdb(file_contents):
4344
"""Index the compilation database."""
4445
result = set()
4546
for item in file_contents:
46-
filename = os.path.join(item["directory"], item["file"])
47+
filename = os.path.normpath(os.path.join(item["directory"], item["file"]))
4748
result.add(filename)
4849
return result

0 commit comments

Comments
 (0)