Dotdots were removed only when converting a relative path to absolute
one. This patch makes the behaviour consistent for absolute file paths by
removing them in that case as well. Also updates the documentation to mention
the behaviour.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Code change LGTM, i think the doc change should be dropped or reshaped though.
clang/docs/JSONCompilationDatabase.rst | ||
---|---|---|
89 ↗ | (On Diff #475189) | This doesn't fit with the rest of the spec text: the new text describing tool behavior, while everything else describes the data. I'm not totally sure about documenting this (it's of pretty limited interest, doesn't cover symlink handling exhaustively, and seems more a limitation of the tools than a feature of the format). If you do want to I'd suggest separating it from the format description into a separate paragraph below (e.g. "Because compilation databases can be large, tools match filenames are matched against entries textually without IO. This means they generally don't understand symlinks.") |
This breaks tests on windows: http://45.33.8.238/win/69993/step_7.txt
Please take a look and revert for now if it takes a while to fix.