-
Notifications
You must be signed in to change notification settings - Fork 0
Contributing
x500x edited this page Jun 18, 2026
·
4 revisions
English | 简体中文
- 使用 C++17,但遵循
/kernel限制:无异常、无 RTTI,不依赖内核不可用的标准库能力。 - 可用
namespace、类、RAII、轻量模板组织代码。 - 避免直接
new/delete(除非在 lib 内重载);优先项目堆对象封装或 API 释放函数。 - lib 内禁止使用栈缓冲,请用堆内存;高频缓冲考虑常驻 Workspace。
- 所有函数标记
noexcept。 - 使用 SAL 注解(
_In_、_Out_、_Must_inspect_result_等)。 - Debug/Release 构建均视警告为错误、保持最高警告等级;新增代码须清零所有警告。
- 使用
pwsh,不要用powershell。 - 写完代码必须进入 test 与 debug 构建测试,禁止「冒烟测试」式走过场。
- 发现实现缺失时补全,不要忽视或降级。
- 不把「兜底设计」当作正式架构手段,不以「先跑起来」为由引入回退方案。
feat: 添加新功能
fix: 修复 bug
docs: 文档更新
style: 代码格式调整
refactor: 代码重构
test: 测试相关
chore: 构建/工具相关
格式:feat/fix/chore: 简单说明,正文用简洁条目说明变更。
- Fork 项目
- 创建功能分支:
git checkout -b feature/AmazingFeature - 提交:
git commit -m 'feat: Add some AmazingFeature' - 推送:
git push origin feature/AmazingFeature - 创建 Pull Request
- 遵循项目代码风格
- 添加必要的测试
- 更新相关文档
- 确保所有测试通过
- C++17 under
/kernellimits: no exceptions, no RTTI, no kernel-unavailable STL. - Organize with
namespace, classes, RAII, lightweight templates. - Avoid raw
new/delete(unless overloaded in the lib); prefer heap wrappers or API release functions. - No stack buffers in the lib — use heap; keep hot buffers resident in the Workspace.
- Mark all functions
noexcept. - Use SAL annotations (
_In_,_Out_,_Must_inspect_result_, …). - Debug/Release builds treat warnings as errors at the highest level; new code must be warning-free.
- Use
pwsh, notpowershell. - After writing code you must run tests and a debug build — no token "smoke testing".
- If an implementation is missing, complete it rather than skipping or downgrading.
- Do not treat fallback hacks as architecture, and do not justify fallbacks with "just get it running".
feat / fix / docs / style / refactor / test / chore: short summary, with concise bullet points in the body.
Fork → branch (feature/AmazingFeature) → commit → push → open a Pull Request. Follow the code style, add tests, update docs, and make sure all tests pass.
-
开始使用 / Get Started
-
概念与行为 / Concepts
-
协议指南 / Protocols
-
API 参考 / API Reference
-
贡献与项目 / Contribute