Skip to content

style: ソース全体を .clang-format に合わせて一括 reformat#82

Merged
thawk105 merged 1 commit into
masterfrom
bulk-reformat-master
May 14, 2026
Merged

style: ソース全体を .clang-format に合わせて一括 reformat#82
thawk105 merged 1 commit into
masterfrom
bulk-reformat-master

Conversation

@thawk105
Copy link
Copy Markdown
Owner

概要

cc/ include/ common/ 配下の 240 ファイル (.cc / .hh / .cpp) に clang-format 14 を機械適用。意味的変更はゼロ。

Closes #74

背景: なぜこの PR が必要か

変更規模

  • 213 files changed, 8997 insertions(+), 9089 deletions(-)
  • clang-format -i (clang-format 14.0.0) の機械適用のみ。手作業の整形・コード変更なし。
  • 対象は git ls-files -- cc include common | grep -E '\.(cc|hh|cpp)$' の 240 ファイル。third_party/ と build 生成物は対象外。

Test plan

  • clang-format --dry-run --Werror を全 240 ファイルに適用 → 違反 0
  • GCC 13 フルビルド (Release + -DENABLE_SANITIZER=OFF + g++-13) → exit 0、error/warning 0Phase 5: set_compile_options() で -Wall -Wextra -Werror を有効化 (#43) #80 (Phase 5) で -Wall -Wextra -Werror が全 target に有効化済みなので、整形後コードがその厳格ゲートを通ることも確認済み。

マージ順序

この PR がマージされれば、master のソースが clang-format 14 clean になる。その後 #78 (format.yml の CI チェック追加) を master 取り込み → rebase すれば #78 の CI が緑になる。レビューは機械適用のため diff 個別確認は不要、コマンドの正しさとビルド緑の確認で足りる。

`cc/ include/ common/` 配下の 240 ファイル (`.cc` / `.hh` / `.cpp`) に
clang-format 14 を機械適用。意味的変更はゼロ。

#75 で .clang-format をリファインしたが、その整形を全ソースに適用する
#76 はベースが refine-clang-format ブランチのままマージされ master に
届いていなかった。本コミットで現 master (= #79 / #80 取り込み済み) に
対して reformat を当て直す。Closes #74
@thawk105 thawk105 merged commit 91c7e41 into master May 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant