Language Servers
Axon documentation
C and C++
C and C++ language-server support in Axon.
C and C++
clangd
C/C++ support for diagnostics, navigation, symbols, formatting, and compile-database-aware intelligence.
Delivery
system or bundled clangd depending on platform
Activation
.c, .cc, .cpp, .h, .hpp, and compile_commands.json
Capabilities
Uses compile_commands.json for include paths, macros, standards, and build flags.
Provides completions, hover, diagnostics, definitions, references, symbols, and formatting.
Works best when the build system exports an accurate compile database.
Setup
Install clangd or use a build that bundles it.
Generate compile_commands.json from CMake, Ninja, Bear, or your build system.
Open the folder where clangd can find that compile database.
Troubleshooting
False missing includes usually mean compile_commands.json is absent or stale.
Wrong standard diagnostics come from missing build flags.
Header-only navigation improves when the including translation units are known.