[PATCH] D37101: [clangd] [WIP] Add support for snippet completions

Raoul Wols via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 2 13:41:41 PDT 2017


rwols updated this revision to Diff 113657.
rwols added a comment.

- Adjust SnippetCompletionItemCollector such that it only sets insertTextFormat to InsertTextFormat::Snippet when it's actually needed (i.e. we encounter a CK_Placeholder chunk).
- Fix failing tests in test/clangd/{completion.test,authority-less-uri.test} because of the new changes.
- Add new tests in test/clangd/completion-snippet.test that tests the snippet functionality.


https://reviews.llvm.org/D37101

Files:
  clangd/ClangdLSPServer.cpp
  clangd/ClangdLSPServer.h
  clangd/ClangdServer.cpp
  clangd/ClangdServer.h
  clangd/ClangdUnit.cpp
  clangd/ClangdUnit.h
  clangd/Protocol.cpp
  clangd/Protocol.h
  clangd/tool/ClangdMain.cpp
  test/clangd/authority-less-uri.test
  test/clangd/completion-snippet.test
  test/clangd/completion.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37101.113657.patch
Type: text/x-patch
Size: 30892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170902/2ad73d02/attachment-0001.bin>


More information about the cfe-commits mailing list