llvm-project/clang-tools-extra/clangd
2023-03-21 07:53:08 +01:00
..
benchmarks [clangd] Allow to build Clangd without decision forest 2022-12-07 13:52:22 +01:00
fuzzer [clangd] Fix shared lib builds 2023-01-20 08:57:21 +01:00
index [Serialization] Place command line defines in the correct file 2023-03-20 17:36:01 +00:00
indexer [clangd] Pass the entire tooling::CompileCommand to CommandMangler 2022-11-07 17:58:37 -05:00
quality
refactor Revert "Revert "[clangd] Fix AddUsing in the face of typo-correction"" 2023-03-21 07:27:21 +01:00
support Remove the ThreadLocal template from LLVM. 2023-01-10 21:07:52 -07:00
test Revert "[clangd] Move standard options adaptor to CommandMangler" 2023-03-13 07:00:56 -07:00
tool Move from llvm::makeArrayRef to ArrayRef deduction guides - last part 2023-01-10 11:47:43 +01:00
unittests [clangd][NFC] Format & include cleanup for AddUsingTests.cpp 2023-03-21 07:53:08 +01:00
xpc [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
AST.cpp [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
AST.h [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
ASTSignals.cpp [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
ASTSignals.h [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
ClangdLSPServer.cpp Move from llvm::makeArrayRef to ArrayRef deduction guides - last part 2023-01-10 11:47:43 +01:00
ClangdLSPServer.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
ClangdServer.cpp [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
ClangdServer.h Remove redundant initialization of std::optional (NFC) 2023-01-14 14:06:18 -08:00
CMakeLists.txt [clangd] Fix shared lib builds 2023-01-20 08:57:21 +01:00
CodeComplete.cpp [clangd] Refine logic on $0 in completion snippets 2023-03-17 17:57:24 +08:00
CodeComplete.h [clangd] Add flag to control #import include insertions 2023-01-09 09:48:29 -05:00
CodeCompletionStrings.cpp [clangd] Refine logic on $0 in completion snippets 2023-03-17 17:57:24 +08:00
CodeCompletionStrings.h [clangd] Refine logic on $0 in completion snippets 2023-03-17 17:57:24 +08:00
CollectMacros.cpp
CollectMacros.h
CompileCommands.cpp [clangd] Move standard options adaptor to CommandMangler 2023-03-17 03:10:36 -07:00
CompileCommands.h [clangd] Move standard options adaptor to CommandMangler 2023-03-17 03:10:36 -07:00
Compiler.cpp [clangd] Disable backend-releated filelist compiler options. 2023-01-04 13:00:24 +01:00
Compiler.h [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
Config.cpp
Config.h [clangd] UnusedIncludes: Strict config now uses the include-cleaner-library implementation. 2023-03-10 11:56:11 +01:00
ConfigCompile.cpp [clangd] UnusedIncludes: Strict config now uses the include-cleaner-library implementation. 2023-03-10 11:56:11 +01:00
ConfigFragment.h [clangd] UnusedIncludes: Strict config now uses the include-cleaner-library implementation. 2023-03-10 11:56:11 +01:00
ConfigProvider.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-02 16:17:40 -08:00
ConfigProvider.h
ConfigYAML.cpp Re-land [clangd] Add support for missing includes analysis. 2023-03-08 13:29:52 +00:00
DecisionForest.cpp [clangd] NFC. Add a newline at the end of the file 2022-12-09 12:31:50 +01:00
Diagnostics.cpp [clangd] Set diag data before emitting 2023-02-23 16:10:11 +01:00
Diagnostics.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
DraftStore.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
DraftStore.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
DumpAST.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
DumpAST.h
ExpectedTypes.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
ExpectedTypes.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
Feature.cpp [NFC][TargetParser] Replace uses of llvm/Support/Host.h 2023-02-10 09:59:46 +00:00
Feature.h
FeatureModule.cpp Don't use Optional::hasValue (NFC) 2022-06-26 19:54:41 -07:00
FeatureModule.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
Features.inc.in [clangd] Fix a typo "Features.h" => "Feature.h" in IWYU pragma. 2022-12-12 13:46:19 +01:00
FileDistance.cpp [clang-tools-extra] Use *{Set,Map}::contains (NFC) 2023-03-14 21:30:29 -07:00
FileDistance.h
FindSymbols.cpp [clangd] Remove reundant use of getSpellingLoc() 2023-03-20 14:52:10 -04:00
FindSymbols.h
FindTarget.cpp Revert "[Clang] Refactor "Designators" into a unified implementation [NFC]" 2023-03-02 12:09:29 -08:00
FindTarget.h
Format.cpp
Format.h
FS.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
FS.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
FuzzyMatch.cpp [llvm][ADT] Replace uses of makeMutableArrayRef with deduction guides 2023-01-16 14:49:37 -07:00
FuzzyMatch.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-02 16:17:40 -08:00
GlobalCompilationDatabase.cpp [clangd] Move standard options adaptor to CommandMangler 2023-03-17 03:10:36 -07:00
GlobalCompilationDatabase.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
Headers.cpp [clang-tools-extra] Use *{Set,Map}::contains (NFC) 2023-03-14 21:30:29 -07:00
Headers.h [clangd] Remove the IncludeStructure::isSelfContained API. 2023-03-13 12:37:38 +01:00
HeaderSourceSwitch.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
HeaderSourceSwitch.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
HeuristicResolver.cpp NFC: [clang] Template argument cleanups. 2022-10-25 00:29:56 +02:00
HeuristicResolver.h Go-to-type on smart_ptr<Foo> now also shows Foo 2022-07-11 12:13:47 +02:00
Hover.cpp Use APInt::getSignificantBits instead of APInt::getMinSignedBits (NFC) 2023-02-19 23:56:52 -08:00
Hover.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
IncludeCleaner.cpp [clangd] Remove IWYU handling code that is used only for the old unused-include feature. 2023-03-13 12:34:34 +01:00
IncludeCleaner.h [clangd] UnusedIncludes: Strict config now uses the include-cleaner-library implementation. 2023-03-10 11:56:11 +01:00
IncludeFixer.cpp [clangd] Include the correct header for typeid() 2023-01-09 18:07:07 -05:00
IncludeFixer.h [clangd] Full support for #import insertions 2023-01-09 09:48:30 -05:00
InlayHints.cpp [clangd] Hide inlay hints when using a macro as a calling argument that with a param comment 2023-02-26 19:06:44 +08:00
InlayHints.h JSON: llvm::Optional => std::optional 2022-12-16 07:56:52 +00:00
JSONTransport.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
LSPBinder.h
ParsedAST.cpp [clangd] Drop stale macro and mark ranges 2023-03-14 13:18:16 +01:00
ParsedAST.h [clangd] Implement unused include warnings with include-cleaner library. 2023-01-19 14:31:40 +01:00
PathMapping.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-02 16:17:40 -08:00
PathMapping.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-02 16:17:40 -08:00
Preamble.cpp [clangd] Patch main file macros in preamble 2023-03-15 09:00:15 +01:00
Preamble.h [clangd] Patch main file macros in preamble 2023-03-15 09:00:15 +01:00
Protocol.cpp [clangd] Add extension for adding context (enclosing function or class) in references results 2023-01-01 15:25:18 +01:00
Protocol.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
Quality.cpp Use llvm::bit_cast (NFC) 2023-02-14 01:22:12 -08:00
Quality.h [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
README.md
RIFF.cpp
RIFF.h
Selection.cpp Move from llvm::makeArrayRef to ArrayRef deduction guides - last part 2023-01-10 11:47:43 +01:00
Selection.h
SemanticHighlighting.cpp [clangd] Avoid recursion on UnresolvedUsingValueDecl during semantic highlighting 2023-03-19 04:30:33 -04:00
SemanticHighlighting.h [clangd] Add semantic token for angle brackets 2023-01-31 17:15:31 +01:00
SemanticSelection.cpp [llvm][ADT] Replace uses of makeMutableArrayRef with deduction guides 2023-01-16 14:49:37 -07:00
SemanticSelection.h FoldingRanges: Handle LineFoldingsOnly clients. 2022-08-29 19:03:48 +02:00
SourceCode.cpp [clangd] Respect preamble-patch when handling diags 2023-02-22 15:54:15 +01:00
SourceCode.h [clangd] Respect preamble-patch when handling diags 2023-02-22 15:54:15 +01:00
SystemIncludeExtractor.cpp [clang-tools-extra] Use std::optional instead of llvm::Optional (NFC) 2023-01-07 20:19:42 -08:00
TidyFastChecks.inc [clangd] Add script to maintain list of fast clang-tidy checks 2022-11-28 14:29:23 +01:00
TidyFastChecks.py [clangd] Add script to maintain list of fast clang-tidy checks 2022-11-28 14:29:23 +01:00
TidyProvider.cpp [clangd] Disable modernize-macro-to-enum tidy check 2023-01-17 17:12:07 +01:00
TidyProvider.h
Transport.h [clangd] Fix some header guard names, NFC 2022-12-13 10:00:51 +01:00
TUScheduler.cpp [clangd] Respect WantDiags when emitting diags from possibly stale preambles 2023-03-15 11:29:16 +01:00
TUScheduler.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00
URI.cpp Use llvm::all_of (NFC) 2022-08-14 16:25:36 -07:00
URI.h
XRefs.cpp [clangd] Remove reundant use of getSpellingLoc() 2023-03-20 14:52:10 -04:00
XRefs.h [clang-tools-extra] Remove remaining uses of llvm::Optional (NFC) 2023-01-07 20:34:53 -08:00

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.