chore: ignore compile_commands.json

This commit is contained in:
javalsai 2024-08-06 15:33:13 +02:00
parent 663427ec95
commit 8b1216c232
Signed by: javalsai
SSH Key Fingerprint: SHA256:3G83yKhBUWVABVX/vPWH88xnK4+ptMtHkZGCRXD4Mk8
3 changed files with 2 additions and 106 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/lidm
dist/
/compile_commands.json
.cache/

View File

@ -1,106 +0,0 @@
[
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/main.o",
"src/main.c",
"-O3",
"-Iinclude"
],
"file": "src/main.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/util.o",
"src/util.c",
"-O3",
"-Iinclude"
],
"file": "src/util.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/ui.o",
"src/ui.c",
"-O3",
"-Iinclude"
],
"file": "src/ui.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/users.o",
"src/users.c",
"-O3",
"-Iinclude"
],
"file": "src/users.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/sessions.o",
"src/sessions.c",
"-O3",
"-Iinclude"
],
"file": "src/sessions.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/efield.o",
"src/efield.c",
"-O3",
"-Iinclude"
],
"file": "src/efield.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/auth.o",
"src/auth.c",
"-O3",
"-Iinclude"
],
"file": "src/auth.c"
},
{
"directory": "/home/javalsai/coding/lidm",
"arguments": [
"gcc",
"-c",
"-o",
"dist/config.o",
"src/config.c",
"-O3",
"-Iinclude"
],
"file": "src/config.c"
}
]

View File

@ -11,6 +11,7 @@ For small fixes or incremental improvements simply fork the repo and follow the
1. [Fork](https://help.github.com/articles/fork-a-repo/) the repository and [clone](https://help.github.com/articles/cloning-a-repository/) your fork.
2. Start coding!
- Configure clangd LSP by generating `compile_commands.json` (e.g. `bear -- make` or `compiledb make`)
- Implement your feature.
- Check your code works as expected.
- Run the code formatter: `clang-format -i $(git ls-files "*.cpp" "*.h")`