Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Catching Bugs Early - Validating C++ Contracts with Static Analysis

CppCon via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to validate C++ contracts using static analysis tools to catch bugs before runtime in this conference talk from CppCon 2025. Explore the implementation of preconditions, postconditions, and assertions introduced in the C++26 draft standard and discover how static analysis can identify contract violations during compile-time rather than waiting for runtime failures. Examine which types of contracts are suitable for static analysis validation and understand the theoretical and practical limitations of these approaches. Follow a detailed demonstration of an implementation using CodeQL, GitHub's extensible static analysis engine, combined with constraint solvers to validate specific contract types. Review real-world case study results that evaluate the effectiveness of static contract validation techniques on actual codebases and production code. Gain insights into reducing development costs by identifying faults earlier in the software development lifecycle and creating more reliable C++ programs through proactive contract verification.

Syllabus

Catching Bugs Early: Validating C++ Contracts with Static Analysis - Peter Martin & Mike Fairhurst

Taught by

CppCon

Reviews

Start your review of Catching Bugs Early - Validating C++ Contracts with Static Analysis

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.