compile_commands.json should be generated per person
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
build/*
|
||||
.cache
|
||||
.cache
|
||||
compile_commands.json
|
@@ -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.
|
||||
|
@@ -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"
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user