From 7b6d9f3326295fc80ea0c9026f3dd9d57f8436de Mon Sep 17 00:00:00 2001 From: carson radtke Date: Sat, 13 Apr 2024 16:35:59 -0500 Subject: [PATCH] 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 /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 --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2f613b33d5..8cd494a1f1 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,5 @@ __pycache__ .pytest_cache .cache .CMake/a.out +compile_commands.json