Your company here — click to reach over 10,000 unique daily visitors

cscppc - Man Page

a compiler wrapper that runs cppcheck in background


cscppc [--help | --print-path-to-wrap]


cscppc is a compiler wrapper that runs cppcheck in background. Create a symbolic link to cscppc named as your compiler (gcc, g++, ...) and put it to your $PATH.

The following parameters are given to Cppcheck by default:

The following parameters are passed to Cppcheck from compiler’s command line:

The following file extensions are recognized as C/C++ source files:

If cscppc is installed on system, the following command activates the wrapper:

export PATH="$(cscppc --print-path-to-wrap):$PATH"



Prints basic usage information.


Prints path to the directory with symlinks to the cscppc executable.

Exit Status

cscppc propagates the exit status returned by the compiler (in case cscppc succeeds to run the compiler). The exit status returned by Cppcheck does not affect the resulting exit status.

Environment Variables


If set to a non-empty string, cscppc outputs the list of parameters given to Cppcheck to the standard output.


cscppc expects a colon-separated list of Cppcheck options that should be appended to command line prior to invoking Cppcheck. The options are appended even if they already appear in the command line and they are always appended at the end of the command line.


Please report bugs and feature requests at https://github.com/csutils/cscppc.


Written by Kamil Dudka.


Copyright (C) 2013-2022 Red Hat, Inc. Free use of this software is granted under the terms of the GNU General Public License (GPL). See the COPYING file for details.