diff --git a/.gitignore b/.gitignore index f67eef3..5b46c59 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .direnv cmake-build-debug cmake-build-release +.cache/clangd/index diff --git a/CMakeLists.txt b/CMakeLists.txt index 821f793..6163225 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.25) project(BrainfuckInterpreter) set(CMAKE_CXX_STANDARD 20) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # find_package(Boost 1.81 COMPONENTS program_options REQUIRED) diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..66636ac --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +./cmake-build-debug/compile_commands.json \ No newline at end of file diff --git a/flake.lock b/flake.lock index b0c6725..1611c4f 100644 --- a/flake.lock +++ b/flake.lock @@ -6,11 +6,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1705332421, - "narHash": "sha256-USpGLPme1IuqG78JNqSaRabilwkCyHmVWY0M9vYyqEA=", + "lastModified": 1713532798, + "narHash": "sha256-wtBhsdMJA3Wa32Wtm1eeo84GejtI43pMrFrmwLXrsEc=", "owner": "numtide", "repo": "devshell", - "rev": "83cb93d6d063ad290beee669f4badf9914cc16ec", + "rev": "12e914740a25ea1891ec619bb53cf5e6ca922e40", "type": "github" }, "original": { @@ -42,11 +42,11 @@ "systems": "systems_2" }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { @@ -73,11 +73,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1705566941, - "narHash": "sha256-CLNtVRDA8eUPk+bxsCCZtRO0Cp+SpHdn1nNOLoFypLs=", + "lastModified": 1717112898, + "narHash": "sha256-7R2ZvOnvd9h8fDd65p0JnB7wXfUvreox3xFdYWd1BnY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b06ff4bf8f4ad900fe0c2a61fc2946edc3a84be7", + "rev": "6132b0f6e344ce2fe34fc051b72fb46e34f668e0", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index c1a01e2..4346354 100644 --- a/flake.nix +++ b/flake.nix @@ -72,6 +72,7 @@ # bear # To generate compilation database gdb cling # To try out my bullshit implementations + clang-tools_18 # doxygen # Generate docs + graphs ];