Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Kate Kate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • UtilitiesUtilities
  • KateKate
  • Merge requests
  • !517

Add more options for clangd

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Waqar Ahmed requested to merge work/clangd-imp into master Nov 11, 2021
  • Overview 2
  • Commits 1
  • Pipelines 4
  • Changes 1

So, while searching for better completions I found the answer in clangd itself. This change adds two new arguments for clangd:

--limit-results=500

Limit completion results to 500. This fixes the issues where we don't get most obvious completions sometimes. Default is 100, I think but even with that we miss functions so bump it to 500. This way we will be able to get all of the functions even for very big classes.

--completion-style=bundled

This option tells clangd to bundle overloads into one item so you see the item as "connect(...) [8 overloads]" which I think is much better than seeing 8 overloads which will complete to exact same thing.

These options have been there since 2018 so its safe to enable them.

Edited Nov 11, 2021 by Waqar Ahmed
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/clangd-imp