Implement the interface in
- FileIndex
- MemIndex
- MergeIndex
Depends on https://reviews.llvm.org/D50385.
Paths
| Differential D51279
[clangd] Implement findOccurrences interface in dynamic index. ClosedPublic Authored by hokein on Aug 26 2018, 10:31 PM.
Details Summary Implement the interface in
Depends on https://reviews.llvm.org/D50385.
Diff Detail
Event TimelineHerald added subscribers: kadircet, arphaman, jkorous and 3 others. · View Herald TranscriptAug 26 2018, 10:31 PM Comment Actions Some numbers of memory usage from running this on my machine:
The memory usage of occurrences is relatively small, I think it is fine to enable it by default. Comment Actions The memory usage looks good. Some NITs and a major consideration wrt to the implementation of merging occurences from dynamic and static index.
Comment Actions Just noticed I'm not on the reviewers list, sorry for chiming in without invitation. Was really excited about the change :-) Comment Actions
Comments are always welcome :)
Comment Actions
fixed :-)
Comment Actions Thanks for the comments.
Comment Actions This basically looks good to go (some fixes needed but they're pretty clear I think let me know if not!)
This revision is now accepted and ready to land.Aug 31 2018, 3:48 AM Comment Actions Minor cleanup.
hokein marked 3 inline comments as done. Comment Actionsaddress review comments:
Closed by commit rCTE341242: [clangd] Implement findOccurrences interface in dynamic index. (authored by hokein). · Explain WhyAug 31 2018, 12:54 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 163580 clangd/index/FileIndex.h
clangd/index/FileIndex.cpp
clangd/index/Index.h
clangd/index/MemIndex.h
clangd/index/MemIndex.cpp
clangd/index/Merge.h
clangd/index/Merge.cpp
clangd/tool/ClangdMain.cpp
unittests/clangd/CodeCompleteTests.cpp
unittests/clangd/FileIndexTests.cpp
unittests/clangd/IndexTests.cpp
unittests/clangd/TestTU.cpp
|
Maybe avoid default arguments? Having clients pass nullptr explicitly seems like the right thing to do