When the limit of FuzzyFindRequest is not specified, MemIndex and
DexIndex will set it MAX_UINT, which doesn't make sense in the active tool dexp
(we might get lots results). This patch restricts it to a small number.
Details
- Reviewers
ioeric
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 24557 Build 24556: arc lint + arc unit
Event Timeline
clangd/index/dex/dexp/Dexp.cpp | ||
---|---|---|
129 | I think we should make it configurable like what we do here. |
clangd/index/dex/dexp/Dexp.cpp | ||
---|---|---|
129 | Made it configurable for Lookup. Limit option is used to restrict the number for final results, it is reasonable for FuzzyFind, and Lookup But for Refs, it means the number of different symbols, not the number of final results, I still hard-code it. |
clangd/index/dex/dexp/Dexp.cpp | ||
---|---|---|
166 | Maybe The max number of symbols with the same name but different IDs to display. Only applies when -name is set.? I think it's worth calling out that there can be different IDs for the same name. | |
226 | I think you would want to set limit to >1. Currently, the error condition will never be triggered? |
I think we should make it configurable like what we do here.