[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-07 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL341639: [clangd] NFC: Document URIDistance (authored by omtcyfz, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51691?vs=164197&id=164372#toc

[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-07 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE341639: [clangd] NFC: Document URIDistance (authored by omtcyfz, committed by ). Changed prior to commit: https://reviews.llvm.org/D51691?vs=164197&id=164373#toc Repository: rL LLVM https://review

[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-06 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 164197. https://reviews.llvm.org/D51691 Files: clang-tools-extra/clangd/FileDistance.h Index: clang-tools-extra/clangd/FileDistance.h === --- clang-tools-extra/clangd/FileDistance.h +++ clan

[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-06 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev marked an inline comment as done. kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/FileDistance.h:89 public: + // Memorizes paths from \p Sources and builds efficient structure for URI + // distance computations. \p Sources must contain absolute pa

[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/FileDistance.h:66 // Supports lookups to find the minimum distance to a file from any source. -// This object should be reused

[PATCH] D51691: [clangd] NFC: Document URIDistance

2018-09-05 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added reviewers: sammccall, ioeric, ilya-biryukov. kbobyrev added a project: clang-tools-extra. Herald added subscribers: kadircet, arphaman, jkorous, MaskRay. `URIDistance` constructor should mention that `Sources` must contain *absolute paths*, not URIs.