chore: 引入仓库根 .clang-format 与 .gitignore
平衡板从 firmware 主仓拆出后,作为独立产品需要自己的代码风格和忽略规则。 .clang-format 沿用主仓 projects/.clang-format 的全套约定(C++/Zephyr 风格), 保证拆出前后 reformat 结果一致;.gitignore 在主仓基础上裁剪掉 Android、 Unity 相关条目,仅保留嵌入式构建产物、IDE 本地配置和 OS 临时文件。
This commit is contained in:
+34
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user