@chengzhao-dev/dsh-cpp-workflow 0.7.9 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +8 -7
- package/README.md +5 -4
- package/cordis.patch.yml +2 -2
- package/icon.svg +5 -5
- package/lib/client.js +542 -538
- package/lib/comment-policy.js +37 -33
- package/lib/workspace.js +8 -10
- package/locale/en.json +4 -4
- package/locale/zh.json +4 -4
- package/package.json +100 -100
- package/skills/building-cpp/SKILL.md +5 -5
- package/skills/building-cpp/assets/config/.clang-tidy +4 -5
- package/skills/building-cpp/assets/config/.clangd +5 -7
- package/skills/building-cpp/assets/config/.vscode/extensions.json +5 -5
- package/skills/building-cpp/assets/config/.vscode/settings.json +56 -58
- package/skills/building-cpp/examples/environment.md +13 -102
- package/skills/building-cpp/references/01-build-script.md +3 -3
- package/skills/building-cpp/references/02-environment.md +8 -8
- package/skills/building-cpp/scripts/checking-environment.mjs +424 -424
- package/skills/building-cpp/steps/01-build.md +10 -10
- package/skills/building-cpp/steps/02-tooling.md +6 -6
- package/skills/building-cpp/steps/03-check.md +2 -2
- package/skills/building-cpp/steps/04-vscode.md +4 -6
- package/skills/developing-cpp/SKILL.md +8 -9
- package/skills/developing-cpp/references/comments/01-comment-rules.md +50 -26
- package/skills/developing-cpp/references/comments/02-style.md +33 -25
- package/skills/developing-cpp/references/comments/examples/03-declaration-enum.md +14 -14
- package/skills/developing-cpp/references/comments/examples/04-declaration-file.md +12 -8
- package/skills/developing-cpp/references/comments/examples/05-declaration-function.md +20 -10
- package/skills/developing-cpp/references/comments/examples/06-declaration-member.md +4 -4
- package/skills/developing-cpp/references/comments/examples/07-declaration-predicate.md +2 -2
- package/skills/developing-cpp/references/comments/examples/08-declaration-struct.md +6 -6
- package/skills/developing-cpp/references/comments/examples/09-implementation-body.md +41 -41
- package/skills/developing-cpp/references/comments/glossary/01-comment-terms.md +17 -16
- package/skills/developing-cpp/references/design/01-project-design.md +21 -10
- package/skills/developing-cpp/references/design/02-raii.md +5 -4
- package/skills/developing-cpp/references/design/03-third-party.md +2 -2
- package/skills/developing-cpp/references/design/examples/02-coordinate-table.md +12 -12
- package/skills/developing-cpp/references/design/examples/03-header-place.md +1 -1
- package/skills/developing-cpp/references/design/examples/04-library-boundary.md +6 -6
- package/skills/developing-cpp/references/design/examples/06-move-result.md +29 -28
- package/skills/developing-cpp/references/design/examples/07-preview-read.md +24 -23
- package/skills/developing-cpp/references/design/examples/08-screen-enter-exit.md +19 -18
- package/skills/developing-cpp/references/design/examples/09-option-menu.md +6 -6
- package/skills/developing-cpp/references/design/session-layer.md +13 -22
- package/skills/developing-cpp/references/exceptions/01-exception-rules.md +57 -57
- package/skills/developing-cpp/references/exceptions/examples/01-throw-boundary.md +7 -20
- package/skills/developing-cpp/references/exceptions/examples/02-throw-build-mode.md +10 -11
- package/skills/developing-cpp/references/exceptions/examples/03-throw-catch.md +4 -4
- package/skills/developing-cpp/references/exceptions/examples/04-throw-destructor.md +9 -5
- package/skills/developing-cpp/references/exceptions/examples/07-throw-when.md +2 -2
- package/skills/developing-cpp/references/index.md +32 -35
- package/skills/developing-cpp/references/language/glossary/01-language-terms.md +3 -2
- package/skills/developing-cpp/references/language/language-basics/02-initialization.md +1 -1
- package/skills/developing-cpp/references/language/language-basics/05-expressions.md +9 -2
- package/skills/developing-cpp/references/language/language-basics/06-functions.md +2 -3
- package/skills/developing-cpp/references/language/language-basics/09-templates.md +3 -3
- package/skills/developing-cpp/references/language/language-basics/10-language-checklist.md +9 -9
- package/skills/developing-cpp/references/language/performance/03-memory.md +1 -1
- package/skills/developing-cpp/references/language/performance/07-checklist.md +6 -6
- package/skills/developing-cpp/references/language/standard-library/01-containers.md +4 -5
- package/skills/developing-cpp/references/language/standard-library/02-access.md +2 -5
- package/skills/developing-cpp/references/language/standard-library/05-string.md +1 -1
- package/skills/developing-cpp/references/language/standard-library/06-format.md +22 -20
- package/skills/developing-cpp/references/language/standard-library/{11-format-ecosystem.md → 07-format-ecosystem.md} +2 -11
- package/skills/developing-cpp/references/language/standard-library/{07-time.md → 08-time.md} +1 -1
- package/skills/developing-cpp/references/language/standard-library/{09-files.md → 10-files.md} +1 -1
- package/skills/developing-cpp/references/language/standard-library/11-library-checklist.md +8 -0
- package/skills/developing-cpp/references/language/value-types/02-signed.md +7 -7
- package/skills/developing-cpp/references/language/value-types/03-integer-roles.md +14 -2
- package/skills/developing-cpp/references/language/value-types/05-strong-type.md +2 -2
- package/skills/developing-cpp/references/language/value-types/06-const-method.md +5 -5
- package/skills/developing-cpp/references/language/value-types/07-nodiscard.md +1 -1
- package/skills/developing-cpp/references/language/value-types/08-comparison.md +1 -1
- package/skills/developing-cpp/references/language/value-types/09-subscript.md +1 -1
- package/skills/developing-cpp/references/language/value-types/11-checklist.md +7 -7
- package/skills/developing-cpp/references/layout/01-source-layout.md +13 -13
- package/skills/developing-cpp/references/layout/02-file-template.md +10 -10
- package/skills/developing-cpp/references/layout/03-declaration-order.md +83 -42
- package/skills/developing-cpp/references/naming/01-identifier-names.md +32 -30
- package/skills/developing-cpp/references/naming/examples/06-naming-lower-layer.md +15 -15
- package/skills/developing-cpp/references/naming/examples/07-naming-multiple-return.md +2 -2
- package/skills/developing-cpp/references/naming/examples/13-naming-state-change.md +24 -23
- package/skills/developing-cpp/references/naming/glossary/01-naming-terms.md +3 -3
- package/skills/developing-cpp/references/naming/glossary/02-position.md +9 -9
- package/skills/developing-cpp/references/naming/glossary/03-selection.md +5 -1
- package/skills/developing-cpp/references/naming/glossary/04-square.md +3 -3
- package/skills/developing-cpp/references/naming/glossary/05-scoring.md +2 -2
- package/skills/developing-cpp/references/naming/glossary/06-difficulty.md +7 -7
- package/skills/developing-cpp/references/naming/glossary/07-stream.md +1 -1
- package/skills/developing-cpp/references/style/01-google-cpp-style.md +13 -23
- package/skills/developing-cpp/scripts/checking-comments.mjs +961 -755
- package/skills/developing-cpp/scripts/checking-declaration-order.mjs +512 -515
- package/skills/developing-cpp/steps/01-behavior.md +0 -1
- package/skills/developing-cpp/steps/02-boundary.md +2 -3
- package/skills/developing-cpp/steps/03-declaration.md +9 -10
- package/skills/developing-cpp/steps/04-implementation.md +7 -8
- package/skills/engineering/SKILL.md +9 -10
- package/skills/engineering/references/cmake/assets/LinkSettings.cmake +1 -1
- package/skills/engineering/references/cmake/linking/02-rpath.md +5 -6
- package/skills/engineering/references/cmake/modules/01-functions.md +9 -9
- package/skills/engineering/references/cmake/standards/01-cxx-standard.md +6 -6
- package/skills/engineering/references/cmake/standards/index.md +8 -29
- package/skills/engineering/references/cmake/targets/01-target-rules.md +14 -13
- package/skills/engineering/references/cmake/targets/examples/01-rpath.md +1 -1
- package/skills/engineering/references/cmake/testing/01-ctest.md +3 -3
- package/skills/engineering/references/formatting/01-encoding.md +5 -5
- package/skills/engineering/references/formatting/02-clang-format.md +2 -2
- package/skills/engineering/references/formatting/03-clang-tidy.md +5 -5
- package/skills/engineering/references/formatting/04-clangd.md +32 -39
- package/skills/engineering/references/formatting/05-config-comments.md +88 -0
- package/skills/engineering/references/formatting/examples/02-clang-tidy.md +6 -6
- package/skills/engineering/references/formatting/examples/03-clangd.md +17 -17
- package/skills/engineering/references/index.md +5 -4
- package/skills/engineering/scripts/checking-encoding.mjs +369 -369
- package/skills/engineering/steps/01-targets.md +3 -3
- package/skills/engineering/steps/02-modules.md +1 -2
- package/skills/engineering/steps/03-check.md +2 -3
- package/templates/cpp-workflow-project/SKILL.md +1 -1
- package/templates/cpp-workflow-project/environment.json +4 -4
- package/skills/developing-cpp/references/design/examples/05-library-split.md +0 -8
- package/skills/developing-cpp/references/language/standard-library/10-library-checklist.md +0 -10
- package/skills/developing-cpp/references/naming/examples/02-naming-basic.md +0 -4
- package/skills/developing-cpp/references/naming/examples/10-naming-rename.md +0 -6
- package/skills/engineering/references/formatting/examples/04-config-comments.md +0 -70
- /package/skills/developing-cpp/references/language/standard-library/{08-random.md → 09-random.md} +0 -0
|
@@ -1,109 +1,32 @@
|
|
|
1
1
|
# 正反例:环境组合
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
声明规则、合法组合、各轴取值与校验命令见 `../references/02-environment.md`。本文件只保留三处判不准的期望输出。
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
"host": "windows",
|
|
8
|
-
"build_host": "wsl",
|
|
9
|
-
"compiler": "clang",
|
|
10
|
-
"standard": "c++23"
|
|
11
|
-
}
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
在 WSL 内执行 `running-build.sh clang`;构建目录 `build/clang`。
|
|
15
|
-
|
|
16
|
-
```json
|
|
17
|
-
{
|
|
18
|
-
"host": "linux",
|
|
19
|
-
"build_host": "native",
|
|
20
|
-
"compiler": "gcc"
|
|
21
|
-
}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
在 Linux 上执行 `running-build.sh gcc`;构建目录 `build/gcc`。
|
|
25
|
-
|
|
26
|
-
## 非法声明
|
|
27
|
-
|
|
28
|
-
**轴为空**:
|
|
29
|
-
|
|
30
|
-
```json
|
|
31
|
-
{
|
|
32
|
-
"host": "linux",
|
|
33
|
-
"build_host": "",
|
|
34
|
-
"compiler": "gcc"
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
声明校验以退出码 2 失败,不查找 `g++`。先让用户填 `build_host`。
|
|
39
|
-
|
|
40
|
-
**组合非法**:
|
|
41
|
-
|
|
42
|
-
```json
|
|
43
|
-
{
|
|
44
|
-
"host": "linux",
|
|
45
|
-
"build_host": "wsl",
|
|
46
|
-
"compiler": "clang"
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
WSL 只对 `host=windows` 合法;不要通过改 `host` 来绕过,先确认工程到底跑在哪。
|
|
51
|
-
|
|
52
|
-
**同时写两个编译器**:
|
|
53
|
-
|
|
54
|
-
```json
|
|
55
|
-
{
|
|
56
|
-
"host": "linux",
|
|
57
|
-
"build_host": "native",
|
|
58
|
-
"compiler": ["clang", "gcc"]
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
一个 configure 只允许一个编译器;拆成两次声明或两个工程。
|
|
63
|
-
|
|
64
|
-
## Windows 原生
|
|
5
|
+
## 轴为空
|
|
65
6
|
|
|
66
7
|
```json
|
|
67
8
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
9
|
+
"host": "linux",
|
|
10
|
+
"build_host": "",
|
|
11
|
+
"compiler": "gcc"
|
|
71
12
|
}
|
|
72
13
|
```
|
|
73
14
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
```text
|
|
77
|
-
ok: false
|
|
78
|
-
issues: ["本版本不能在 Windows 原生壳里构建"]
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
停在这里。不要建议改 `build_host` 为 `wsl` 来绕过,也不要补 PowerShell 脚本。
|
|
82
|
-
|
|
83
|
-
## GCC 模式不比较 GCC 主版本
|
|
84
|
-
|
|
85
|
-
```text
|
|
86
|
-
g++ 14.1.0
|
|
87
|
-
clang-format 18.1.8
|
|
88
|
-
clang-tidy 18.1.8
|
|
89
|
-
clangd 18.1.8
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
通过:检查器只要求 `g++` 是真的 GCC,`clang-format` / `clang-tidy` ≥ 16,`clangd` 可用。不要拿 GCC 的主版本去要求 Clang 工具,也不要因为版本号不同就换成一套不存在的 `gcc-format`。若 GCC 的标准库太旧、`<format>` 不可用,升级工具链,而不是改检查器。
|
|
15
|
+
不带 `--live` 时以退出码 2 失败,`issues` 指名 `build_host` 为空;此时不查找 `g++`,先让用户把轴填上。
|
|
93
16
|
|
|
94
|
-
##
|
|
17
|
+
## compiler 写成数组
|
|
95
18
|
|
|
96
19
|
```json
|
|
97
20
|
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
21
|
+
"host": "linux",
|
|
22
|
+
"build_host": "native",
|
|
23
|
+
"compiler": ["clang", "gcc"]
|
|
101
24
|
}
|
|
102
25
|
```
|
|
103
26
|
|
|
104
|
-
|
|
27
|
+
同样退出码 2,说明一个 configure 只允许一个编译器;拆成两次声明或两个工程,不要指望检查器替你选。
|
|
105
28
|
|
|
106
|
-
##
|
|
29
|
+
## 四工具版本不一致
|
|
107
30
|
|
|
108
31
|
```text
|
|
109
32
|
clang++ 18.1.8
|
|
@@ -112,16 +35,4 @@ clang-tidy 16.0.6
|
|
|
112
35
|
clangd 16.0.6
|
|
113
36
|
```
|
|
114
37
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## 声明校验与活动校验
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
# CI / Windows 开发机:只读声明,不需要工具链
|
|
121
|
-
node "<skill-dir>/scripts/checking-environment.mjs" --project .
|
|
122
|
-
|
|
123
|
-
# build host 上:核对构建宿主、PATH 和版本
|
|
124
|
-
node "<skill-dir>/scripts/checking-environment.mjs" --project . --live
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
不带 `--live` 时永远不探测 PATH;不要把活动校验塞进每次构建,构建脚本已经隐含了工具存在性。
|
|
38
|
+
`--live` 以退出码 3 失败,`issues` 报四者不在同一 LLVM 主版本;统一到同一发行版,不要只升级编译器。不带 `--live` 时只读声明、不探测 PATH,这条不报。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- 读取时机:写构建脚本时;读完能回答:构建脚本;预算:一次只开这一份(73 行),不自动串联。 -->
|
|
2
2
|
# 构建脚本
|
|
3
3
|
|
|
4
|
-
`assets/templates/projects/common/running-build.sh` 是
|
|
4
|
+
`assets/templates/projects/common/running-build.sh` 是 Bash 脚本,适用于 Linux、macOS 和 Windows + WSL 这几个 POSIX build host。`host=windows` + `build_host=native` 不是本版本支持的组合:声明校验会直接拒绝,脚本也不会在原生 Windows 壳里运行。脚本只做配置、构建、CTest 与运行;格式化与静态检查在编辑时手动跑,不混进构建入口。
|
|
5
5
|
|
|
6
6
|
## 格式化与静态检查
|
|
7
7
|
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
4. **configure**:每次运行都重新 configure,不复用缓存;传 `-G Ninja`、`-DCMAKE_BUILD_TYPE=Debug`、`-DCMAKE_C_COMPILER`、`-DCMAKE_CXX_COMPILER`、`-DCMAKE_EXPORT_COMPILE_COMMANDS=ON`。C 与 C++ 使用同一套编译器;没有 C 语言的工程会忽略 C 编译器设置。
|
|
30
30
|
5. **build**:`cmake --build "$BUILD_DIR"`。
|
|
31
31
|
6. **编译数据库链接**:`BUILD_DIR` 与 `BUILD_ROOT` 相同时数据库就在该目录,不建链接;否则先 `rm -f "${BUILD_ROOT}/compile_commands.json"`,再用 shell 参数展开去掉 `${BUILD_ROOT}/` 前缀求相对路径(`case` 配 `"${target#"${BUILD_ROOT}/"}"`),然后 `ln -s` 到 `${BUILD_ROOT}/compile_commands.json`。不用 `realpath --relative-to`,它是 GNU coreutils 选项,macOS 自带命令没有;也不用 `ln -n`,它在 BSD/macOS 上不可移植。
|
|
32
|
-
7. **test
|
|
32
|
+
7. **test**:命令为 `ctest --test-dir "$BUILD_DIR" --output-on-failure`,`--no-tests` 的取值按 `steps/03-check.md` 第 4 步的条件选;不写 `--no-tests=ignore` 时 ctest 会把 0 条当失败(退出码 8)。
|
|
33
33
|
8. **run**:`(cd "$BUILD_DIR/bin" && "./$APP_NAME")`;共享库的运行时路径由定构建的 CMake RPATH 负责,不在脚本里设全局 `LD_LIBRARY_PATH`。
|
|
34
34
|
|
|
35
35
|
最后一行是 `main "$@"`;函数定义在 `main()` 之前,`set` / `readonly` 在最前。
|
|
36
36
|
|
|
37
37
|
## 关键约束
|
|
38
38
|
|
|
39
|
-
- 只用
|
|
39
|
+
- 只用 Bash 3.2 兼容语法;不要依赖 `mapfile`(macOS 自带 Bash 3.2 没有)。
|
|
40
40
|
- 路径含空格时全部加引号;`find -print0` 配 `read -d ''`。
|
|
41
41
|
- `set -u` 下空数组展开会报错;先判 `${#sources[@]}` 再传给工具。
|
|
42
42
|
- 不在脚本里设全局 `LD_LIBRARY_PATH`;共享库的运行时路径由 CMake 的 RPATH 设置。
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- 读取时机:配环境或检查工具时;读完能回答:环境组合;预算:一次只开这一份(116 行),不自动串联。 -->
|
|
2
2
|
# 环境组合
|
|
3
3
|
|
|
4
|
-
环境是**声明**,不是探测结果。项目技能 `cpp-workflow-project`(目录名也接受 `cpp_workflow_project`)的 `environment.json`
|
|
4
|
+
环境是**声明**,不是探测结果。项目技能 `cpp-workflow-project`(目录名也接受 `cpp_workflow_project`)的 `environment.json` 写清楚三个环境轴和一个语言标准;构建规则、工具配置和检查都按这个声明执行。声明为空或组合非法时,先修声明,不要靠猜;只有 `standard` 缺失按默认 `c++23` 处理(见「非法组合」)。
|
|
5
5
|
|
|
6
6
|
## 四个轴
|
|
7
7
|
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
"host": "windows",
|
|
18
|
+
"build_host": "wsl",
|
|
19
|
+
"compiler": "clang",
|
|
20
|
+
"standard": "c++23"
|
|
21
21
|
}
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
- `host=windows` + `build_host=native`:本版本不支持,静态校验直接返回失败。
|
|
41
41
|
- `compiler=msvc`、`compiler=clang-cl`、`compiler=c`。
|
|
42
42
|
|
|
43
|
-
`windows` + `native` 不再作为「合法但不能构建」的声明保留;CMake 资产里的 MSVC 分支不是受支持的环境,不能据此写 `compiler=msvc
|
|
43
|
+
`windows` + `native` 不再作为「合法但不能构建」的声明保留;CMake 资产里的 MSVC 分支不是受支持的环境,不能据此写 `compiler=msvc`。判定结果与错误文本见上一条;不要建议改 WSL,也不要临时写 PowerShell 脚本伪装成已支持。
|
|
44
44
|
|
|
45
45
|
## 工具角色
|
|
46
46
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
## 版本与能力
|
|
60
60
|
|
|
61
|
-
- **标准**:新工程默认 C++23,可声明 `c++11`–`c++23`;编译器必须支持对应的 `-std=c++NN`。CMake ≥ 3.20
|
|
61
|
+
- **标准**:新工程默认 C++23,可声明 `c++11`–`c++23`;编译器必须支持对应的 `-std=c++NN`。CMake ≥ 3.20;`cxx_std_11`–`cxx_std_17` 需要 CMake ≥ 3.8(3.8 才引入 meta-feature),`cxx_std_20` 3.12、`cxx_std_23` 3.20;本工作流统一按 3.20 起步。`CXX_STANDARD_REQUIRED ON` 防止标准 decay;C++23 的库设施(如 `std::print`)以实际编译器/标准库为准。
|
|
62
62
|
- **clang-format / clang-tidy**:≥ 16。这是本工作流的工具基线;低于该版本时检查器报告具体角色和版本。
|
|
63
63
|
- **clang 模式同版本**:`clang++`、`clang-format`、`clang-tidy`、`clangd` 必须是同一 LLVM 主版本。混装 17 的 clangd 与 18 的 clang-format 会出现诊断与格式化不一致。Apple Clang 也按这条核对;若工具版本对不上,报告的是具体角色和版本,不要为了通过而改声明。
|
|
64
64
|
- **gcc 模式**:检查器不拿 GCC 的主版本去比 Clang 工具;`clang-format` / `clang-tidy` 仍要 ≥ 16,`clangd` 只要求可用。`g++` 必须是真的 GCC,不能是 Apple clang 的别名。GCC 需要自带 C++23 `<print>` / `std::expected` 的标准库;版本过旧时先升级工具链,或把项目标准降到实际可用的档位,不要改检查器绕过。
|
|
@@ -93,7 +93,7 @@ node "<skill-dir>/scripts/checking-environment.mjs" --project . --live
|
|
|
93
93
|
约束:
|
|
94
94
|
|
|
95
95
|
- 只读:不安装、不下载、不改 PATH、不写项目文件。
|
|
96
|
-
- `--live`
|
|
96
|
+
- `--live` 先做声明校验,声明失败即停。
|
|
97
97
|
- WSL 模式要求当前进程在 WSL 内(`WSL_DISTRO_NAME` / `WSL_INTEROP` 或 `/proc/version` 含 Microsoft);只在 Linux 上但不在 WSL 时失败。
|
|
98
98
|
- macOS 上声明 `compiler=gcc` 时,`g++ --version` 若显示 Apple clang,按「不是真正的 GCC」失败。
|
|
99
99
|
- 没有 `--live` 时不做任何 PATH 探测,CI 和 Windows 开发机都能做声明校验。
|