[PATCH] D52422: [clangd] Handle template args for disabled function arg snippets

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 25 01:55:59 PDT 2018


kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: clangd/CodeComplete.cpp:507
+      if (Snippet->front() == '<')
+        return EmptyArgs ? "<$0>()" : "<$1>($0)";
+      if (Snippet->front() == '(')
----------------
maybe have something like `<$1>()$0` when arguments are empty so that user can jump to end.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52422





More information about the cfe-commits mailing list