# clangd

> clangd understands your C++ code and adds smart features to your editor

Source: https://talira.ai/catalog/clangd-pbpm8wqc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / language servers](https://talira.ai/categories/developer-tools/language-servers), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Platforms: macos, windows, linux[^3]
- Licence: Apache-2.0 WITH LLVM-exception[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [LLVM Foundation](https://talira.ai/orgs/llvm-foundation.md)
- Funding: non-profit[^4]

clangd is a language server for [C](https://talira.ai/catalog/c-8bvjqq4g.md) and [C++](https://talira.ai/catalog/c-1n2509q6.md) that gives editors code completion, compile errors and warnings as you type, go-to-definition, find references, hover documentation, renaming, formatting and semantic highlighting through the Language Server Protocol. It is based on the Clang compiler and is part of the [LLVM](https://talira.ai/catalog/llvm-6zghekva.md) project: it runs Clang on your code to show diagnostics in place, suggests fixes and missing includes, and embeds clang-tidy so your project's `.clang-tidy` checks show up in the editor too. It works with any LSP editor (VS Code through its official extension, Vim and Neovim, Emacs, Sublime Text and others), reading a project's `compile_commands.json` to understand its build.

## Links

- Website: https://clangd.llvm.org/
- GitHub: https://github.com/clangd/clangd
- Docs: https://clangd.llvm.org/installation

## Problems it solves

- code completion and go-to-definition for C++ in my editor
- see C and C++ compile errors inline as I type instead of after a build
- run clang-tidy checks live in my editor
- C++ IDE features in Vim, Neovim or Emacs
- a faster, more accurate C/C++ IntelliSense than the default VS Code extension
- rename a symbol across a large C++ codebase safely
- automatically insert missing #include lines in C++

## Features

- code completion with include insertion
- errors and warnings as you type from Clang
- automatic fixes
- embedded clang-tidy checks
- go-to-definition and find references
- hover documentation
- rename refactoring
- formatting
- semantic highlighting
- experimental C++20 modules support

## Limitations

- Diagnostics that require expanding templates in headers are disabled for performance reasons.[^1]
- Not all clang-tidy checks work within clangd.[^1]

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by LLVM Foundation
- funding: non-profit

Warnings:

- GitHub activity not fetched yet

## Related

- Based on [LLVM](https://talira.ai/catalog/llvm-6zghekva.md)

## Alternatives

- [CLion](https://talira.ai/catalog/clion-1kkefg9q.md): The IDE for professional C and C++ development
- [gopls](https://talira.ai/catalog/gopls-9tr658n7.md): The language server for Go
- [rust-analyzer](https://talira.ai/catalog/rust-analyzer-vqfntj9k.md): Bringing a great IDE experience to the Rust programming language
- [Metals](https://talira.ai/catalog/metals-56qr6f98.md): Scala language server with rich IDE features

## Sources

[^1]: https://clangd.llvm.org/features (checked 24 Nov 2026)
[^2]: https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/LICENSE.TXT (checked 24 Nov 2026)
[^3]: https://clangd.llvm.org/installation (checked 24 Nov 2026)
[^4]: https://foundation.llvm.org/ (checked 20 Nov 2026)
