refactor: MakeTempSatPath 并入已有的 SAT 相关 namespace #24

Merged
gjm merged 2 commits from company-desktop-computer/chore/coding-convention-anon-namespace AGit into main 2026-10-21 09:26:12 +08:00
Collaborator
  • 不再为单个函数新建 namespace 块:把 SAT 相关的
    find_nth_occurrence_reverse / fixACISFormat 整块上移到 RegionToString 之前,
    MakeTempSatPath 并入同一块,文件内 namespace 块数由 7 回到 6
  • 编码规范补充:优先复用已有 namespace,整个文件没有时才新建
- 不再为单个函数新建 namespace 块:把 SAT 相关的 find_nth_occurrence_reverse / fixACISFormat 整块上移到 RegionToString 之前, MakeTempSatPath 并入同一块,文件内 namespace 块数由 7 回到 6 - 编码规范补充:优先复用已有 namespace,整个文件没有时才新建
company-desktop-computer added 2 commits 2026-10-21 09:24:36 +08:00
- CODEBUDDY.md 新增「编码规范」章节:只在一个 cpp 内使用的函数
  放在该文件的匿名 namespace{} 中,不用文件级 static
- CoreTools.cpp 的 MakeTempSatPath 按新规范改为匿名 namespace
- 不再为单个函数新建 namespace 块:把 SAT 相关的
  find_nth_occurrence_reverse / fixACISFormat 整块上移到 RegionToString 之前,
  MakeTempSatPath 并入同一块,文件内 namespace 块数由 7 回到 6
- 编码规范补充:优先复用已有 namespace,整个文件没有时才新建
gjm approved these changes 2026-10-21 09:26:08 +08:00
gjm merged commit fabaca58df into main 2026-10-21 09:26:12 +08:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gjm/envi-code#24