Skip to content

Commit 98516e0

Browse files
committed
更新代码风格文档
1 parent 0d232fb commit 98516e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/03-为什么拒绝使用代码格式化工具.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
! Doc Authors : 曾奥然 <[email protected]>
77
! Contributors : Nul None <[email protected]>
88
! Created On : <2025-08-10>
9-
! Last Modified : <2025-08-18>
9+
! Last Modified : <2025-08-20>
1010
! ---------------------------------------------------------- -->
1111

1212
# chsrc 代码风格
@@ -88,11 +88,14 @@ if (!matched) matched = iterate_menu (chsrc_wr_menu, input, &target_tmp);
8888

8989
- 整体上基于 `GNU style`,但我们坚持自己的美学原则,在细节上有所改进
9090

91-
- 类型名: `PascalCase_t`
91+
- 类型名: `PascalCase_t`,即 `UpperCamelCase_t`
9292

9393
- 函数定义和调用时,**函数名和`()`之间始终保持一个空格**,如果是在宏中,可紧凑一些,无硬性规定
9494

95-
- 函数和函数定义之间保持**2个空行**,若一系列函数和一系列函数存在主题性区别,**可用3个空行**
95+
- 函数和函数定义之间**一般保持2个空行**
96+
97+
- 若函数之间有高度关联性,**可用1个空行**
98+
- 若一系列函数和一系列函数存在主题性区别,**可用3个空行**
9699

97100
<br>
98101

0 commit comments

Comments
 (0)