diff --git a/.gitignore b/.gitignore index 04f33fc..4ae04be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build/* -.cache \ No newline at end of file +.cache +compile_commands.json \ No newline at end of file diff --git a/README.md b/README.md index 2c41686..eafb6aa 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/compile_commands.json b/compile_commands.json deleted file mode 100644 index 7be5003..0000000 --- a/compile_commands.json +++ /dev/null @@ -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" -} -] \ No newline at end of file