compile_commands.json should be generated per person
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
2025-09-30 21:44:14 +03:00
committed by Emin Arslan
parent a476d1b9e9
commit 34d35d6039
3 changed files with 7 additions and 12 deletions

View File

@@ -23,9 +23,9 @@ on the compiler itself
## Development
I use clangd as the language server. Appropriate `compile_commands.json`
(required for clangd, otherwise it can not find include files) is provided.
If you'd like to generate them yourself, just use cmake:
I use clangd as the language server. If you want your include files to be handled
correctly, you'll need to generate `compile_commands.json` yourself. You can
do this using cmake:
```bash
cd build
@@ -33,6 +33,8 @@ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
cp compile_commands.json ../
```
After this, clangd should not give you errors on every included header.
## Progress
Woodpecker CI/CD system is integrated.