From 7935bf9e696586d3b02380243a1029cb3b4d69e6 Mon Sep 17 00:00:00 2001 From: M4yGem1ni <3164864582@qq.com> Date: Fri, 10 Apr 2026 15:07:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=80=E5=90=AFlinux=20clangd?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + compile_commands.json | 1 + 2 files changed, 2 insertions(+) create mode 120000 compile_commands.json diff --git a/CMakeLists.txt b/CMakeLists.txt index 6db3e35..692b289 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(forwardad) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # 头文件路径 include_directories(include) diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..affbd32 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +./build/compile_commands.json \ No newline at end of file