Skip to content

Commit

Permalink
add CMake option prefix to coding rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Sep 7, 2023
1 parent ca68d7e commit 3c32722
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
- `hal`(旧 `IfWrapper`)のうち,古すぎるインターフェースを排除: [#23](https://github.com/arkedge/c2a-core/issues/23), [#25](https://github.com/arkedge/c2a-core/pull/25)
- 既に使われてしまっているものについては,各 C2A user で一旦雑に古いヘッダファイルを各々で持って対応可能(今後再設計する予定)
- CMake option の整理: [#86](https://github.com/arkedge/c2a-core/pull/86)
- `C2A_` prefix に統一した他,意味が分かりにくい命名の変更,今後 optional としていく挙動を default OFF とした
- `C2A_` prefix に統一した(これはコーディング規約にも追加)
- 意味が分かりにくい命名の変更,今後 optional としていく挙動を default OFF とした
- `option()` の挙動はユーザ指定によってかなり変わるため,該当する変更は単なるビルドチェックなどではなくすべて grep して変更すること
- `BUILD_C2A_AS_UTF8` -> `C2A_BUILD_AS_UTF8`
- `BUILD_C2A_AS_C99` -> `C2A_BUILD_AS_C99`
Expand Down
5 changes: 5 additions & 0 deletions docs/general/coding_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ typedef uint32_t flash_block_t;


## 個別箇所についての命名など [M]
### CMake option
- 接頭辞は `C2A_` で統一する
- 特定の C2A user 固有のものや,C2A 以外の文脈が含まれる場合は必須ではない


### applications/user_defined
- ファイル名と AppInfo 構造体名を一致させる(スタイルを除く)
- AppInfo 構造体名とそのインスタンス名を一致させる(スタイルを除く)
Expand Down

0 comments on commit 3c32722

Please sign in to comment.