cppcheck

A static analysis tool for C/C++ code

Latest version: 2.22.0

Install tool

xrepo install "cppcheck 2.22.0"

Learn how to add and link packages with Xmake →

Information

Kind
binary
Recipe updated
2026-10-23T08:01:15.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • msys: i386, x86_64
  • macosx: x86_64, arm64
  • windows: x64

Options

No configurable options.

Versions

  • 2.13.0
  • 2.13.4
  • 2.14.1
  • 2.14.2
  • 2.15.0
  • 2.16.2
  • 2.17.1
  • 2.18.0
  • 2.18.1
  • 2.18.3
  • 2.19.1
  • 2.20.0
  • 2.20.1
  • 2.21.1
  • 2.22.0

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "cppcheck 2.22.0"

show info

xrepo info "cppcheck"

Declare a project tool

This package provides executables, not a library to link. Declare it as a requirement and use xrepo env shell from the project directory to access its environment.

xmake.lua

add_requires("cppcheck 2.22.0")

project environment

xrepo env shell

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "cppcheck 2.22.0" shell