[PATCH] D42640: [clangd] Prototype: collect symbol #include & insert #include in global code completion.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 05:28:31 PST 2018


ioeric created this revision.
Herald added subscribers: cfe-commits, hintonda, jkorous-apple, ilya-biryukov, mgorny, klimek.

o Collect suitable #include paths for index symbols. This also does smart mapping
for STL symbols and IWYU pragma.
o For global code completion, add a command for inserting new #include in each code
completion item.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D42640

Files:
  clangd/CMakeLists.txt
  clangd/ClangdLSPServer.cpp
  clangd/ClangdServer.cpp
  clangd/ClangdServer.h
  clangd/CodeComplete.cpp
  clangd/Protocol.cpp
  clangd/Protocol.h
  clangd/clients/clangd-vscode/package.json
  clangd/global-symbol-builder/CMakeLists.txt
  clangd/global-symbol-builder/GlobalSymbolBuilderMain.cpp
  clangd/global-symbol-builder/PragmaCommentHandler.cpp
  clangd/global-symbol-builder/PragmaCommentHandler.h
  clangd/global-symbol-builder/STLPostfixHeaderMap.cpp
  clangd/global-symbol-builder/STLPostfixHeaderMap.h
  clangd/index/HeaderMapCollector.cpp
  clangd/index/HeaderMapCollector.h
  clangd/index/Index.cpp
  clangd/index/Index.h
  clangd/index/Merge.cpp
  clangd/index/SymbolCollector.cpp
  clangd/index/SymbolCollector.h
  clangd/index/SymbolYAML.cpp
  clangd/tool/ClangdMain.cpp
  test/clangd/initialize-params-invalid.test
  test/clangd/initialize-params.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42640.131782.patch
Type: text/x-patch
Size: 67493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180129/ebedd2c5/attachment-0001.bin>


More information about the cfe-commits mailing list