cpp-coding-standards
C++コアガイドラインに基づくC++コーディング標準(isocpp.github.io)。現代的で安全で慣用的なプラクティスを強制するためにC++コードを書き、レビュー、またはリファクタリングする場合に使用します。
Original · translation did not pass checksTarget: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Japanese text
Topics in the source
- C++コーディング標準(C++コアガイドライン)
- 使用時期
- クロスカッティング原則
- 主要なルール
- スマートポインタと所有権
C++コアガイドラインから派生した最新のC++(C++17/20/23)の包括的なコーディング標準。タイプセーフティ、リソースセーフティ、不変性、明確性を強制します。 新しいC++コードを書く(クラス、関数、テンプレート) 既存のC++コードをレビューまたはリファクタリング C++プロジェクトでアーキテクチャ決定を行う C++コードベース全体で一貫性のあるスタイルを実施 言語機能の選択(例:enum vs enum class、生ポインタ対スマートポインタ) これらのテーマはガイドライン全体に繰り返され、基礎を形成: 1. 至るところにRAII:リソースライフタイムをオブジェクトライフタイムにバインド 2. デフォルトで不変性:const/constexprで開始;変更可能性は例外 3. タイプセーフティ:型システムを使用してコンパイル時にエラーを防止 4. 意図を表現:名前、タイプ、概念は目的を伝える必要があります 5. 複雑性を最小化:シンプルなコードが正しいコード 6. 値セマンティクス対ポインタセマンティクス:値で返すか、スコープ付きオブジェクトを好む | Rule | Summary | |------|---------| | P.1 | コード内のアイデアを直接表現 | | P.3 | 意図を表現 | | P.4 | 理想的には、プログラムは静的にタイプセーフである必要があります | | P.5 | ランタイムチェックに対するコンパイル時チェック | | P.8 | リソースをリークしない | | P.10 | 変更可能なデータより不変データを好む | | I.1 | インターフェースを明示的にする | | I.2 | 非const グローバル変数を避ける | | I.4 | インターフェースを正確にし、強く型付けされたものにする | 現代的なC++では、生ポインタの代わりにスマートポインタを使用: std::uniqueptr 単一所有者向け std::sharedptr 共有所有権向け std::weakptr 循環参照を回避するため
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/cpp-coding-standards/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.080Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.