style: ソース全体を .clang-format に合わせて一括 reformat#76
Merged
Conversation
clang-format -i の機械適用のみ、意味的変更なし。 対象は cc/ include/ common/ 配下の .cc/.hh/.cpp (third_party と build 生成物は除外)。.clang-format は PR #75 のリファイン版。
This was referenced May 14, 2026
thawk105
added a commit
that referenced
this pull request
May 14, 2026
build とは独立した format.yml を新設し、cc/ include/ common/ 配下の .cc/.hh/.cpp に clang-format --dry-run --Werror をかける。フォーマット 違反コミットを CI で弾く。 clang-format は devcontainer Dockerfile の dev stage (:latest) のみに 入っているため、このジョブは :latest image を使う (:ci slim には無い)。 対象集合と clang-format バージョン (14) は一括 reformat (#76) と揃える。 Closes #63
thawk105
added a commit
that referenced
this pull request
May 14, 2026
build とは独立した format.yml を新設し、cc/ include/ common/ 配下の .cc/.hh/.cpp に clang-format --dry-run --Werror をかける。フォーマット 違反コミットを CI で弾く。 clang-format は devcontainer Dockerfile の dev stage (:latest) のみに 入っているため、このジョブは :latest image を使う (:ci slim には無い)。 対象集合と clang-format バージョン (14) は一括 reformat (#76) と揃える。 Closes #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
issue #74 への対応。
cc/include/common/配下の C++ ソース (.cc/.hh/.cpp) 全体を.clang-formatに合わせて一括 reformat する。clang-format -iの機械適用のみ。意味的変更はゼロ。手作業での整形・コード変更は一切していない。PR #75 にスタックしている
このPRは #75「.clang-format リファイン」にスタックしている。base は
masterではなくrefine-clang-format(#75 のブランチ)。.clang-formatは旧設定なので、本 reformat は .clang-format: リポジトリ実態に合わせてリファイン #75 のリファイン版設定 (IndentWidth: 2,SortIncludes: false等) を前提にしている。masterに切り替わる (もしくは rebase) 想定。変更内容
git ls-filesで git 管理下の.cc/.hh/.cppのみを対象 (240 ファイル)。third_party/とcc/*/build/等の build 生成物は除外。clang-format -iを適用 (clang-format 14.0.0、devcontainer 同梱版)。変更規模
Test plan
cmake -B build-fmt -DCMAKE_BUILD_TYPE=Release -DENABLE_SANITIZER=OFF -DCMAKE_CXX_COMPILER=g++-13 .→cmake --build build-fmt -j4SortIncludes: false設定で include 順の破壊も無いことを確認済み。レビューについて
機械適用 (
clang-format -i) のみなので、diff の個別行レビューは不要。ビルドが緑であることと、適用コマンド・対象ファイル選定の正しさを確認すれば十分。Closes #74