C++コアガイドラインに基づくC++コーディング標準(isocpp.github.io)。現代的で安全で慣用的なプラクティスを強制するためにC++コードを書き、レビュー、またはリファクタリングする場合に使用します。
d8409a4C++コアガイドラインから派生した最新のC++(C++17/20/23)の包括的なコーディング標準。タイプセーフティ、リソースセーフティ、不変性、明確性を強制します。
enum vs enum class、生ポインタ対スマートポインタ)これらのテーマはガイドライン全体に繰り返され、基礎を形成:
const/constexprで開始;変更可能性は例外| Rule | Summary | |------|---------| | P.1 | コード内のアイデアを直接表現 | | P.3 | 意図を表現 | | P.4 | 理想的には、プログラムは静的にタイプセーフである必要があります | | P.5 | ランタイムチェックに対するコンパイル時チェック | | P.8 | リソースをリークしない | | P.10 | 変更可能なデータより不変データを好む | | I.1 | インターフェースを明示的にする | | I.2 | 非const グローバル変数を避ける | | I.4 | インターフェースを正確にし、強く型付けされたものにする |
現代的なC++では、生ポインタの代わりにスマートポインタを使用:
std::unique_ptr<T> 単一所有者向けstd::shared_ptr<T> 共有所有権向けstd::weak_ptr<T> 循環参照を回避するためCopy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/cpp-coding-standards · pinned to the source commit
git clone https://github.com/affaan-m/ECC.git
cd ECC
git checkout d8409a4b0813771235555e32e3d8046a73988bfa
mkdir -p ".claude/skills/cpp-coding-standards"
cp -r "docs/ja-JP/skills/cpp-coding-standards" ".claude/skills/cpp-coding-standards"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit d8409a4b0813. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.