From 161e76806959c3168b8944ea9f9f07fff69e16b3 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 22 Oct 2023 21:48:05 +0200 Subject: [PATCH] fix: symlink to compile_commands.json --- .gitignore | 1 + .pre-commit-config.yaml | 1 - bootstrap.sh | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index be9452d..436461b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.build /.cache /bin +compile_commands.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc8b389..a224f70 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,6 @@ repos: hooks: - id: clang-format - id: clang-tidy - args: [-p=.build] - repo: https://github.com/cheshirekow/cmake-format-precommit rev: v0.6.13 diff --git a/bootstrap.sh b/bootstrap.sh index ba2fa51..98b48ad 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,3 +1,4 @@ #!/usr/bin/env sh cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON +ln -s .build/compile_commands.json