Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@ The original name of this program was "C++check", but it was later changed to "C

Despite the name, Cppcheck is designed for both C and C++.

## Getting Started

Cppcheck is primarily a command-line tool, but this repository also includes a GUI frontend.

1. Build the project with CMake:

cmake -S . -B build
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are already compile instructions below.

If this "Getting Started" section is targeted to normal users, then imho lets suggest installing cppcheck instead.

cmake --build build

2. Run Cppcheck on a single file:

build/cppcheck file1.c

3. Run Cppcheck on a folder recursively:

build/cppcheck path

If you want the GUI, enable it when building:

cmake -S . -B build -DBUILD_GUI=ON
cmake --build build

Then run the generated `cppcheck-gui` executable from the build output.

## Manual

A manual is available [online](https://cppcheck.sourceforge.io/manual.pdf).
Expand Down
Loading