add compile_commands.json to .gitignore

We set CMAKE_EXPORT_COMPILE_COMMANDS=ON so the compilation database is
automatically exported to the build directory. However, many language
servers expect this file to be in the project root directory, so a common
post-build step is to:

```shell
$ ln -s <build-directory>/compile_commands.json
```

This PR enables developers to do this without having to worry about
accidentally commiting a symlink file.

Signed-off-by: carson radtke <nosrac925@gmail.com>
This commit is contained in:
carson radtke 2024-04-13 16:35:59 -05:00 committed by Douglas Stebila
parent 6f0c46187c
commit 7b6d9f3326

1
.gitignore vendored
View File

@ -35,4 +35,5 @@ __pycache__
.pytest_cache
.cache
.CMake/a.out
compile_commands.json