This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add `limit` extension on completion and workspace-symbols
ClosedPublic

Authored by sammccall on Mar 2 2021, 1:16 PM.

Details

Summary

This overrides the --limit-results command-line flag, and is not constrained
by it.
See https://github.com/clangd/clangd/issues/707

Diff Detail

Event Timeline

sammccall created this revision.Mar 2 2021, 1:16 PM
sammccall requested review of this revision.Mar 2 2021, 1:16 PM
kadircet accepted this revision.Mar 2 2021, 10:46 PM
kadircet added inline comments.
clang-tools-extra/clangd/ClangdLSPServer.cpp
783

should we check for non-negativity in here as well ? (or maybe just change deserialization logic to set it to none for negative ones and store a size_t instead)

This revision is now accepted and ready to land.Mar 2 2021, 10:46 PM
This revision was landed with ongoing or failed builds.Mar 16 2021, 4:30 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 4:30 AM