-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Re-add path normalization that was removed in 315561c86778 #118718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-clang-tools-extra Author: Mike Hommey (glandium) ChangesFull diff: https://github.com/llvm/llvm-project/pull/118718.diff 1 Files Affected:
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.
|
|
@llvm/pr-subscribers-clang-tidy Author: Mike Hommey (glandium) ChangesFull diff: https://github.com/llvm/llvm-project/pull/118718.diff 1 Files Affected:
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.
|
|
Is there a reason to bring it back? Is it causing issues?
|
|
The change in 315561c causes problems on Windows, and I thought that's what it was, but it turns out it's not. Sorry for the noise. I'm still digging as to what exactly is going wrong on our setup. |
|
I found what's going on. It kind of worked by chance before in our setup, but that somehow shows an existing flaw in the run-clang-tidy script. |
|
I see, thanks for looking into it! To be honest I think What do people think? @5chmidti @PiotrZSL @HerrCai0907 @carlosgalvezp? |
No description provided.