Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

867 B
Raw Blame

paths: - "/*.cpp" - "/.hpp" - "**/.cc" - "/*.hh" - "/.cxx" - "**/.h" - "**/CMakeLists.txt"

C++ フック

このファイルは common/hooks.md を C++ 固有のコンテンツで拡張します。

ビルドフック

C++ の変更をコミットする前にこれらのチェックを実行する:

# フォーマットチェック
clang-format --dry-run --Werror src/*.cpp src/*.hpp

# 静的解析
clang-tidy src/*.cpp -- -std=c++17

# ビルド
cmake --build build

# テスト
ctest --test-dir build --output-on-failure

推奨 CI パイプライン

  1. clang-format — フォーマットチェック
  2. clang-tidy — 静的解析
  3. cppcheck — 追加解析
  4. cmake ビルド — コンパイル
  5. ctest — サニタイザーを使用したテスト実行