chore: 引入仓库根 .clang-format 与 .gitignore

平衡板从 firmware 主仓拆出后,作为独立产品需要自己的代码风格和忽略规则。
.clang-format 沿用主仓 projects/.clang-format 的全套约定(C++/Zephyr 风格),
保证拆出前后 reformat 结果一致;.gitignore 在主仓基础上裁剪掉 Android、
Unity 相关条目,仅保留嵌入式构建产物、IDE 本地配置和 OS 临时文件。
This commit is contained in:
2026-05-27 10:04:59 +08:00
parent 99c01e9d15
commit 5876f11479
2 changed files with 354 additions and 2 deletions
+34 -2
View File
@@ -1,6 +1,38 @@
# editors
# =========================================================
# Editor swap / backup
# =========================================================
*.swp
*~
# build
# =========================================================
# IDE 本地配置
# =========================================================
.idea/
*.iml
.vscode/
.codex
.claude
# =========================================================
# Embedded / CMake / Zephyr 构建产物
# =========================================================
/build*/
build/
**/build/
**/zephyr/
**/output/
*.o
*.obj
*.elf
*.bin
*.hex
*.map
*.ninja
.ninja_deps
.ninja_log
# =========================================================
# OS 临时文件
# =========================================================
.DS_Store
Thumbs.db