find_compilation_database checked only for "/" as exit point, but on Windows, this root is impossible.
Fixes #53642
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Currently, only tested on Windows.
This should also increase performance, since the path is canonicalized only once.
Comment Actions
Just a drive-by comment to say, thank you for taking the time to make this fix. It's a bug I've triggered many times. Great to see it being resolved.
Comment Actions
LGTM with a small nit.
i could commit on your behalf and check it for linux, too. But the change seems sane to me.
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py | ||
---|---|---|
69 | please delete the whitespace at the end of the line |
Comment Actions
@JonasToth yes, it would be nice, to test this and then push it for me. Also a backport to 14.0 would be good :).
Comment Actions
@salman-javed-nz you're welcome, I only fixed it because I saw the bug in the trace directly. Normally, I would only fix C/C++ stuff :D.
please delete the whitespace at the end of the line