Repository navigation
refactor!: 迁移到 c-project-standard v0.2.1 工程结构 - #10
Merged
Merged
Conversation
- 采用模板的 CMake、CTest/Unity、CI、安装与 CPack 骨架 - 拆分为 calcexpr_core 库与 calcexpr CLI,公共 API 收敛到 include/calcexpr - 调试系统改为 CALCEXPR_ENABLE_DEBUG,Debug 预设默认开启 - 新增 --version/--help,版本统一为 1.0.0 - 补声明/定义、版本、文档、CPack 与门禁自检 - 删除英文/西语镜像与旧构建配置,补充中文模板文档
- README 增加项目说明、使用方式、测试与安装索引 - 新增调试系统指南与递归下降解析器指南
- debug.c 在 POSIX 下定义 _POSIX_C_SOURCE 以暴露 fileno - 补齐 calculator.c/parser.c 文件末尾换行 - 用 clang-format off/on 固定跨版本对齐不一致的解析器追踪宏
- Linux 睡眠改用 nanosleep,避免严格 C11 下 usleep 未声明 - 对 clang-analyzer 18 的 va_list 误报添加精确 NOLINT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
calcexpr_core库与calcexprCLI,公共 API 收敛到include/calcexprCALCEXPR_ENABLE_DEBUG,新增--version/--help,版本统一为 1.0.0破坏性变更
calculator→calcexprinclude/*.h移到include/calcexpr/calculator.h与src/calcexpr/CALCEXPR_BUILD_EXAMPLE→CALCEXPR_BUILD_CLI,ENABLE_DEBUG→CALCEXPR_ENABLE_DEBUG验证
本地 Windows(GCC 16.2 / Clang 22 / CMake 4.3.3 / Ninja 1.13.2):
ninja-debug、ninja-release、ninja-shared构建 + 7 项 CTest 全绿ninja-coverage构建 + CTest 全绿scripts/check.ps1 -EnableTidy、clang-format、clang-tidy、cppcheck 全绿find_package包消费冒烟、add_subdirectory子项目冒烟全绿CalcExpr-1.0.0-win64.zip与.tar.gz--version/--help/表达式/错误//show process//quit未本地验证:ASAN/UBSAN(Windows MinGW/Clang 缺少 ASAN 运行时)、MSVC、macOS、DEB/RPM;由 CI 覆盖。
影响
AI 辅助
本次迁移由 Qoder 代理执行;已阅读
C_PROJECT_STANDARD.md、CONTRIBUTING.md、docs/guides/testing.md、docs/guides/cmake.md等必读文档,并在本地执行上述验证。人工复核请重点看构建/目标改名与文档删除范围。