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