[clangd] add cmake files and guide for clangd usage

This commit is contained in:
2026-03-08 09:13:21 +03:00
parent 7eec2df5cd
commit 5ef9132b34
7 changed files with 70 additions and 45 deletions

View File

@@ -1,3 +1,13 @@
# practices
Repository with code from practice sessions
Repository with code from practice sessions
# Clangd
First, build the project to generate `compile_commands.json`:
```bash
cmake -B build
```
Then tell clangd where to find it by adding to `.clangd`:
```yaml
CompileFlags:
CompilationDatabase: build
```