都改用Xmake

This commit is contained in:
mzx committed 2026-11-17 21:47:13 +08:00
1 parent ec9332826a
commit d8f1e2226d
21 files changed
+355 -561

No files matched your search

+6 -9
View File
@@ -1,18 +1,15 @@
{
"cmake.sourceDirectory": "/home/mzxiang/Gazebo_projects/sentry_nav_dev/src/sentry_sim",
// ---- C++ 智能感知 ----
// 用 clangd 当唯一引擎:它直接读工作区根的 compile_commands.json,
// include 路径/宏定义全部来自真实编译命令,不会再漏 ROS 头文件或本工程的头文件。
//
// ⚠️ 改了 CMakeLists(新增 .cpp / 改 include 目录 / 加新包)之后,
// 必须重新生成编译数据库,否则 clangd 还在用旧路径,
// 表现就是 "xxx.hpp file not found" + "Too many errors emitted":
// 这份 compile_commands.json 由 xmake 在**每次构建后自动重写**
// (根 xmake.lua 里的 plugin.compile_commands.autoupdate 规则),
// 不需要任何手工生成步骤。
//
// cd ~/Gazebo_projects/sentry_nav_dev
// tools/gen_compdb.sh
//
// 然后在 VS Code 里 Ctrl+Shift+P → "clangd: Restart language server"。
// 改了源码结构、但编辑器还在报 "xxx.hpp file not found" 时,
// 跑一次 `xmake` 让它刷新,然后在 VS Code 里
// Ctrl+Shift+P → "clangd: Restart language server"。
"C_Cpp.intelliSenseEngine": "disabled",
// 不丢 --clang-tidy,避免 ROS 头文件里一堆代码风格告警糊满屏幕。
"clangd.arguments": [