tree: 3c7f1fd8cf71addf2597e89739655b39dae62813 [path history] [tgz]
  1. benchmarks/
  2. fuzzer/
  3. include-mapping/
  4. index/
  5. indexer/
  6. quality/
  7. refactor/
  8. support/
  9. test/
  10. tool/
  11. unittests/
  12. xpc/
  13. AST.cpp
  14. AST.h
  15. ASTSignals.cpp
  16. ASTSignals.h
  17. ClangdLSPServer.cpp
  18. ClangdLSPServer.h
  19. ClangdServer.cpp
  20. ClangdServer.h
  21. CMakeLists.txt
  22. CodeComplete.cpp
  23. CodeComplete.h
  24. CodeCompletionStrings.cpp
  25. CodeCompletionStrings.h
  26. CollectMacros.cpp
  27. CollectMacros.h
  28. CompileCommands.cpp
  29. CompileCommands.h
  30. Compiler.cpp
  31. Compiler.h
  32. Config.cpp
  33. Config.h
  34. ConfigCompile.cpp
  35. ConfigFragment.h
  36. ConfigProvider.cpp
  37. ConfigProvider.h
  38. ConfigYAML.cpp
  39. CSymbolMap.inc
  40. Diagnostics.cpp
  41. Diagnostics.h
  42. DraftStore.cpp
  43. DraftStore.h
  44. DumpAST.cpp
  45. DumpAST.h
  46. ExpectedTypes.cpp
  47. ExpectedTypes.h
  48. Features.inc.in
  49. FileDistance.cpp
  50. FileDistance.h
  51. FindSymbols.cpp
  52. FindSymbols.h
  53. FindTarget.cpp
  54. FindTarget.h
  55. Format.cpp
  56. Format.h
  57. FS.cpp
  58. FS.h
  59. FuzzyMatch.cpp
  60. FuzzyMatch.h
  61. GlobalCompilationDatabase.cpp
  62. GlobalCompilationDatabase.h
  63. Headers.cpp
  64. Headers.h
  65. HeaderSourceSwitch.cpp
  66. HeaderSourceSwitch.h
  67. Hover.cpp
  68. Hover.h
  69. IncludeFixer.cpp
  70. IncludeFixer.h
  71. JSONTransport.cpp
  72. ParsedAST.cpp
  73. ParsedAST.h
  74. PathMapping.cpp
  75. PathMapping.h
  76. Preamble.cpp
  77. Preamble.h
  78. Protocol.cpp
  79. Protocol.h
  80. Quality.cpp
  81. Quality.h
  82. QueryDriverDatabase.cpp
  83. README.md
  84. RIFF.cpp
  85. RIFF.h
  86. Selection.cpp
  87. Selection.h
  88. SemanticHighlighting.cpp
  89. SemanticHighlighting.h
  90. SemanticSelection.cpp
  91. SemanticSelection.h
  92. SourceCode.cpp
  93. SourceCode.h
  94. StdSymbolMap.inc
  95. TidyProvider.cpp
  96. TidyProvider.h
  97. Transport.h
  98. TUScheduler.cpp
  99. TUScheduler.h
  100. URI.cpp
  101. URI.h
  102. XRefs.cpp
  103. XRefs.h
clang-tools-extra/clangd/README.md

clangd

clangd is a language server, and provides C++ IDE features to editors. This is not its documentation.

Communication channels

If you have any questions or feedback, you can reach community and developers through one of these channels:

Building and testing clangd

For a minimal setup on building clangd:

  • Clone the LLVM repo to $LLVM_ROOT.

  • Create a build directory, for example at $LLVM_ROOT/build.

  • Inside the build directory run: cmake $LLVM_ROOT/llvm/ -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra".

    • We suggest building in Release mode as building DEBUG binaries requires considerably more resources. You can check Building LLVM with CMake documentation for more details about cmake flags.
    • In addition to that using Ninja as a generator rather than default make is preferred. To do that consider passing -G Ninja to cmake invocation.
    • Finally, you can turn on assertions via -DLLVM_ENABLE_ASSERTS=On.
  • Afterwards you can build clangd with cmake --build $LLVM_ROOT/build --target clangd, similarly run tests by changing target to check-clangd.