Cppcheck 2.9 User Manual

The Cppcheck 2.9 user manual explains how to run the static analysis tool, configure projects, use addons, and generate reports.


Cppcheck 2.9 User Manual - cover page
Brand
Cppcheck
Document type
User Manual
Language
English
Pages
31
File format
PDF
File size
230 KB
Published
28 September, 2026
Updated
28 September, 2026
MD5 checksum
13D6066657A46CBE1A95A64AF1637D39

About this manual

This manual introduces Cppcheck, a cross‑platform static analysis tool for C/C++ code. It describes the supported platforms, required compiler features, and the types of bugs it can detect, such as undefined behavior and dangerous coding patterns.

The guide covers usage via the GUI and command line, project import, file filtering, exclusion options, the experimental Clang parser, severity levels, library configuration, addons (e.g., MISRA, y2038), and how to generate HTML reports from XML output.

What's inside

  • Introduction
  • Getting Started (GUI and Command Line)
  • File Filtering and Excluding Directories
  • Clang Parser (Experimental)
  • Severity Levels
  • Addons
  • Running Addons
  • Library Configuration
  • HTML Report Generation

Specifications

Version2.9
Supported PlatformsPOSIX, Windows, cross‑platform
Minimum Compiler RequirementC++11 or later

Frequently asked questions

How do I check a single source file with Cppcheck?

Run the command `cppcheck file1.c` to analyze that file.

How can I exclude a folder from analysis?

Use the `-i` option followed by the folder name, e.g., `cppcheck -isrc/c src`.

What option enables the experimental Clang parser?

Add `--clang` to the command line to use the Clang parser.

How can I generate an HTML report from Cppcheck XML output?

Use the `cppcheck-htmlreport` script with `--file`, `--report-dir`, and `--source-dir` options.

Download PDF (230 KB)