Skip to content

Commit 87ac991

Browse files
committed
docs: clarify hermetic clangd requirements
1 parent 225c975 commit 87ac991

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## 0.2.4
44

55
- 修复 hermetic mcpp 编译数据库被插件追加 `--query-driver` 后导致的 clangd 标准库和
6-
模块误诊断;仅在编译命令未自带 no-default-config 和显式标准库配置时补充 query
7-
driver。
6+
模块误诊断;仅在编译命令未自带 `--no-default-config``-nostdinc++` 和显式 libc++
7+
路径时补充 query driver。
88
- 模块检查优先选择项目源码,避免误选 `.mcpp` 依赖缓存或 `target` 生成源码,改善补全、
99
跳转和诊断稳定性。
1010
-`build.mcpp` 作为独立的语法高亮语言处理,不再让 clangd 把 mcpp 构建脚本当作普通

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ TextMate 语法规则提供。
105105
2. 从显式设置、编译器目录、匹配的 xlings `llvm-tools` 目录和 `PATH` 中查找 clangd。
106106
3. 执行编译器和 clangd 的版本命令,比较 LLVM 版本与 revision。
107107
4. 保留用户已有的 `clangd.arguments`,展开 `${workspaceFolder}`
108-
`${workspaceRoot}`;只有在 CDB 未提供 no-default-config 和显式标准库配置时,才添加
109-
精确的 `--query-driver`
108+
`${workspaceRoot}`;只有在 CDB 未提供 `--no-default-config``-nostdinc++` 和显式
109+
libc++ 路径时,才添加精确的 `--query-driver`
110110
5. 根据 CDB 中是否已有显式 PCM 映射以及 `mcpp.modulesSupport` 设置,决定是否增加
111111
clangd 实验模块参数。
112112
6. 必要时重启官方 clangd 扩展,并执行一次最长 60 秒的 `clangd --check`

docs/superpowers/plans/2026-08-05-clangd-hermetic-cdb-build-script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,5 @@ Then run `code --list-extensions --show-versions` and verify `mcpp-community.mcp
143143

144144
- [x] Extend module grammar injection to `source.mcpp-build` and cover the import capture scope.
145145
- [x] Resolve relative compilation-database source paths from each command directory.
146-
- [x] Treat explicit libc++ and no-default-config commands as hermetic without requiring a sysroot.
146+
- [x] Treat no-default-config, nostdinc++, and explicit libc++ commands as hermetic without requiring a sysroot.
147147
- [x] Keep the release instructions synchronized with the extension version.

0 commit comments

Comments
 (0)