تخطَّ إلى المحتوى
إضافةمستوردترخيص مشاركة بالمثل

modern-cpp

Modern C++ best practices (C++20/23/26). Use when writing C++ code, creating new C++ projects, or modernizing legacy C++ patterns.

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

الملفات: 9 · الحجم: 72 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

تُثبَّت الإضافات من سوق الإضافات في كلود كود، لا بنسخ الملفات. نزّل الحزمة لتقرأ محتواها وترخيصها.

التعليمات

modern-cpp

Modern C++ best practices plugin for Claude Code, guiding AI-assisted development toward C++20/23/26 idioms with a security emphasis from Trail of Bits.

When to Use

  • Writing new C++ code (functions, classes, libraries)
  • Modernizing legacy C++ patterns (pre-C++20)
  • Working on security-critical C++ code
  • Reviewing C++ code for modern idiom adoption
  • Choosing between legacy and modern approaches to a problem

What It Covers

Language Features (Tiered by Usability)

TierStandardWhat
Use TodayC++20Concepts, ranges, std::span, std::format, coroutines, <=>
Use TodayC++23std::expected, std::print, deducing this, std::flat_map
Deploy NowAnyCompiler hardening flags, sanitizers, hardened libc++
Plan ForC++26Reflection (eliminates serialization boilerplate and code generators)
WatchC++26Contracts, std::execution (promising but needs compiler maturity)

Security

  • Compiler hardening flags (GCC + Clang, per OpenSSF guidelines)
  • Hardened libc++ modes (bounds-checking with ~0.3% overhead)
  • Sanitizer setup (ASan, UBSan, TSan, MSan)
  • Safe idioms organized by vulnerability class (memory, type, integer, concurrency)

Anti-Patterns

30+ legacy-to-modern pattern replacements with rationale, covering memory management, type safety, error handling, concurrency, and metaprogramming.

Installation

/plugin marketplace add trailofbits/skills
/plugin install modern-cpp

الملفات

  • مجلد.claude-plugin338 بايت
    • plugin.json338 بايت
  • مجلدskills51 ك.ب
    • مجلدmodern-cpp51 ك.ب
      • مجلدreferences42 ك.ب
        • anti-patterns.md5.5 ك.ب
        • compiler-hardening.md7.3 ك.ب
        • cpp20-features.md7 ك.ب
        • cpp23-features.md7 ك.ب
        • cpp26-features.md7.5 ك.ب
        • safe-idioms.md8.1 ك.ب
      • SKILL.md8.5 ك.ب
  • LICENSE20 ك.ب
  • README.md1.5 ك.ب

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ