URIDistance constructor should mention that Sources must contain *absolute paths*, not URIs. This is not very clear when looking at the interface, especially given that distance(...) accepts URI, not an absolute path which can give the wrong impression.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tools-extra/clangd/FileDistance.h | ||
---|---|---|
69 | memoizes is correct here | |
92 | The constructor doesn't do any computation, thus there's nothing to memoize. I'd suggest dropping the second sentence here, that's the only noteworthy thing specific to this constructor. |
clang-tools-extra/clangd/FileDistance.h | ||
---|---|---|
92 | Sorry, did you mean dropping the *first sentence* here? The second one seems to be the one you describe. |
memoizes is correct here
https://en.wikipedia.org/wiki/Memoization