Browse Source

Clangd config

Kajetan Johannes Hammerle 1 month ago
parent
commit
bc4cad6dad
3 changed files with 5 additions and 0 deletions
  1. 3 0
      .clangd
  2. 1 0
      .gitignore
  3. 1 0
      start

+ 3 - 0
.clangd

@@ -0,0 +1,3 @@
+CompileFlags:
+  Add: [-ferror-limit=0]
+  CompilationDatabase: ./build/

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 tetris
 tetris
 *.swp
 *.swp
 build/
 build/
+.cache/

+ 1 - 0
start

@@ -3,6 +3,7 @@ set -e
 clear
 clear
 cd "$(dirname "$0")"
 cd "$(dirname "$0")"
 
 
+export CMAKE_EXPORT_COMPILE_COMMANDS=true
 folder="build"
 folder="build"
 if [ ! -e "$folder" ]; then
 if [ ! -e "$folder" ]; then
     cmake -B "$folder" -S . -G Ninja
     cmake -B "$folder" -S . -G Ninja