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

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
build/*
.cache
.cache
compile_commands.json

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.

View File

@@ -1,8 +0,0 @@
[
{
"directory": "/home/haxala1r/Desktop/Programming/C++/lispy-stuff/build",
"command": "/usr/bin/c++ -I/home/haxala1r/Desktop/Programming/C++/lispy-stuff/src/include -o CMakeFiles/main.dir/src/main.cpp.o -c /home/haxala1r/Desktop/Programming/C++/lispy-stuff/src/main.cpp",
"file": "/home/haxala1r/Desktop/Programming/C++/lispy-stuff/src/main.cpp",
"output": "CMakeFiles/main.dir/src/main.cpp.o"
}
]