Skip to content

Commit 7661e52

Browse files
SummerOneTwoclaude
andcommitted
docs: 更新文档与实际代码同步
CLAUDE.md: - 工具名称从类名改为实际工具名(file_read, solution_build 等) - 新增 solution_run, solution_analyze, problem_pack_polygon - C++ 标准从 C++2c 改为 C++20(GCC 10+) TROUBLESHOOTING.md: - C++ 标准要求从 GCC 14+ 改为 GCC 10+ - 修正 Issue 链接地址 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6421f5d commit 7661e52

2 files changed

Lines changed: 28 additions & 27 deletions

File tree

CLAUDE.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,33 @@ AutoCode/
4343

4444
| 工具 | 描述 |
4545
|------|------|
46-
| FileSaveTool | 保存文件 |
47-
| FileReadTool | 读取文件 |
48-
| FileListTool | 列出文件 |
49-
| SolutionBuildTool | 构建解法 |
50-
| SolutionTestTool | 测试解法 |
51-
| StressTestTool | 压力测试 |
52-
| ProblemInitTool | 初始化题目 |
53-
| ProblemGenerateTestsTool | 生成测试数据 |
54-
| ValidatorBuildTool | 构建校验器 |
55-
| ValidatorSelectTool | 选择最佳校验器 |
56-
| GeneratorBuildTool | 构建生成器 |
57-
| GeneratorRunTool | 运行生成器 |
58-
| CheckerBuildTool | 构建检查器 |
59-
| InteractorBuildTool | 构建交互器 |
46+
| file_read | 读取文件 |
47+
| file_save | 保存文件 |
48+
| solution_build | 构建解法 |
49+
| solution_run | 执行解法 |
50+
| solution_analyze | 分析解法复杂度 |
51+
| validator_build | 构建校验器 |
52+
| validator_select | 选择最佳校验器 |
53+
| generator_build | 构建生成器 |
54+
| generator_run | 运行生成器 |
55+
| checker_build | 构建检查器 |
56+
| interactor_build | 构建交互器 |
57+
| stress_test_run | 压力测试 |
58+
| problem_create | 初始化题目 |
59+
| problem_generate_tests | 生成测试数据 |
60+
| problem_pack_polygon | 打包为 Polygon 格式 |
6061

6162
## 出题工作流程
6263

63-
1. 初始化题目目录 (`ProblemInitTool`)
64-
2. 实现解法 (`SolutionBuildTool`)
65-
3. 构建校验器 (`ValidatorBuildTool`)
66-
4. 构建生成器 (`GeneratorBuildTool`)
67-
5. 运行压力测试 (`StressTestTool`)
68-
6. 生成测试数据 (`ProblemGenerateTestsTool`)
64+
1. 初始化题目目录 (`problem_create`)
65+
2. 实现解法 (`solution_build`)
66+
3. 构建校验器 (`validator_build`)
67+
4. 构建生成器 (`generator_build`)
68+
5. 运行压力测试 (`stress_test_run`)
69+
6. 生成测试数据 (`problem_generate_tests`)
6970

7071
## 关键约束
7172

7273
- 包管理强制使用 `uv`(绝对禁用 pip/poetry/conda)
7374
- 运行时强制使用 `uv run`
74-
- C++ 标准使用 C++2c
75+
- C++ 标准使用 C++20(需要 GCC 10+)

TROUBLESHOOTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ Compilation failed with error
2727
g++ --version
2828
```
2929

30-
### C++2c 标准不支持
30+
### C++20 标准不支持
3131

3232
**错误信息:**
3333
```
34-
error: 'c++2c' is not a valid standard
34+
error: unrecognized command line option "-std=c++20"
3535
```
3636

3737
**解决方案:**
3838

39-
1. 升级到 GCC 14+:
39+
1. 升级到 GCC 10+:
4040
```bash
41-
gcc --version # 需要 14.0 或更高
41+
gcc --version # 需要 10.0 或更高
4242
```
4343

44-
2. 或降级到 C++20
44+
2. 或降级到 C++17
4545
- 修改 `compiler.py` 中的 `std` 参数默认值
4646

4747
### 编译超时
@@ -203,4 +203,4 @@ PermissionError: [Errno 13] Permission denied
203203
1. 查看测试用例:`tests/` 目录
204204
2. 检查工具文档:`src/autocode_mcp/tools/` 源代码注释
205205
3. 运行测试验证环境:`pytest tests/ -v`
206-
4. 提交 Issue:[GitHub Issues](https://github.com/your-repo/issues)
206+
4. 提交 Issue:[GitHub Issues](https://github.com/SummerOneTwo/AutoCode/issues)

0 commit comments

Comments
 (0)