Excluded folders in scan build is turned to absolute path before
comapre to 'file' in cdb. 'file' in cdb might be a path relative
to 'directory', so we need to turn it to absolute path before
comparison.
Details
Diff Detail
Unit Tests
Time | Test | |
---|---|---|
450 ms | linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp |
Event Timeline
I know that the current situation is a mess, but there is an alternative version of scan-build-py on Github, which is also distributed on pypi. Could you check if that version is also susceptible to this problem and open a pull request for the author in case it is?
The repository is here: https://github.com/rizsotto/scan-build
This would be the best way to ensure the bug is fixed for all the users.
Gabor or Petr,
Can any one of you help me commit this change? Not sure if I could commit myself.
Do you mean pull this change into that repo after this got submitted in trunk? Will do!
What's the plan regarding updating scan-build-py to match the upstream? It seems like this issue has already been address in the upstream version.
As far as I understand, the author is no longer motivated to contribute to LLVM, so I think there are two ways forward:
- Just remove this from the LLVM repo and redirect users to use the GitHub/Pypi version, or
- Import the upstream fixes we need ourselves.
I think there are also some patches that only exist here not on that repo so there is no strict upstream/downstream, just two forked versions.
Since in our use case, we would likely use this version instead of the python version (easier to update/maintain), I suggest just adding the fix we need here.
For this specific bug, the python version is already fixed in a different way by reading the code.