This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Handle template args for disabled function arg snippets
ClosedPublic

Authored by ilya-biryukov on Sep 24 2018, 7:55 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Sep 24 2018, 7:55 AM
ilya-biryukov added inline comments.Sep 24 2018, 9:41 AM
clangd/CodeComplete.cpp
1699 ↗(On Diff #166690)

Sorry, leftover from debug printing. Will remove

kadircet accepted this revision.Sep 25 2018, 1:53 AM

LGTM

clangd/CodeComplete.cpp
507 ↗(On Diff #166690)

maybe have something like <$1>()$0 when arguments are empty so that user can jump to end.

This revision is now accepted and ready to land.Sep 25 2018, 1:53 AM
ilya-biryukov marked an inline comment as done.
  • Remove debug formatting
  • Update snippet for no-arg case with the suggested changes
ilya-biryukov marked an inline comment as done.Sep 25 2018, 10:43 PM
ilya-biryukov added inline comments.
clangd/CodeComplete.cpp
507 ↗(On Diff #166690)

Thanks, this looks consistent with other cases

This revision was automatically updated to reflect the committed changes.