CSCPPC(1)
π CSCPPC β like, the compiler wrapper that runs cppcheck in the background, bestie
okay so welcome to the cscppc(1) manual page, section 1 of the manual, and honestly? she's iconic. let's get into it π
β¨ NAME β¨
cscppc β a compiler wrapper that runs cppcheck in background π¦
πΈ SYNOPSIS πΈ
cscppc [--help | --print-path-to-wrap]
π DESCRIPTION π
okay so real talk: cscppc is a compiler wrapper that runs cppcheck in background. that's the whole vibe. β¨
the way you set her up is: you make a symbolic link to cscppc, you name that link after your compiler (gcc, g++, ...), and then you drop it into your $PATH. that's it, that's the ritual π«Ά
π§ the parameters she hands to Cppcheck by default
these are, like, automatic. she just does this:
-D__GNUC__-D__STDC__-D__i386__[32bit architecture only]-D__WORDSIZE=32[32bit architecture only]-D__x86_64__[64bit architecture only]-D__WORDSIZE=64[64bit architecture only]-D__CPPCHECK__--inline-suppr--quiet--template="{file}:{line}: {severity}: {id}(CWE-{cwe}): {message}"--suppressions-list=/usr/share/cscppc/default.supp
π the parameters she passes along from the compiler's command line
so these ones she scoops up from whatever the compiler was invoked with and forwards them:
-D...-I...
π the file extensions she recognizes as C/C++ source files
cCcccppcxx
π activating the wrapper
if cscppc is installed on your system, this command right here activates the wrapper:
export PATH="$(cscppc --print-path-to-wrap):$PATH"
slay. that's the whole activation. go off π
β¨ OPTIONS β¨
--helpβ prints basic usage information. like, the short version of what you're reading rn π--print-path-to-wrapβ prints the path to the directory that holds the symlinks to thecscppcexecutable. this is the one you shove into your$PATHπ
β EXIT STATUS β
cscppc propagates the exit status that the compiler returned β that's in the case where cscppc succeeds in running the compiler. π«Ά
but the exit status returned by Cppcheck? yeah no, that one does not affect the resulting exit status. not even a little. periodt. π
πΈ ENVIRONMENT VARIABLES πΈ
DEBUG_CSCPPCβ if you set this to a non-empty string,cscppcwill output the list of parameters that were given to Cppcheck, straight to standard output. cute for snooping, ngl πCSCPPC_ADD_OPTSβcscppcexpects a colon-separated list of Cppcheck options here, and she appends them to the command line prior to invoking Cppcheck. heads up tho: they get appended even if they already appear in the command line, and they are always appended at the end of the command line. so, like, no deduping, bestie π
π¦ BUGS π¦
please report bugs and feature requests at https://github.com/csutils/cscppc. do not suffer in silence, we wanna hear it π
π AUTHOR π
written by Kamil Dudka.
π COPYING π
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. π
and that's the whole page, no cap. every flag, every default, every file extension β all accounted for. mwah π
okay bye bestie, this was the cscppc(1) page, dated 06/29/2026 β go forth and run your wrapper, main character π§β¨π
π¦ where this page comes from
- epel 10: cscppc 2.2.8-1.el10_3 Β· GPL-3.0-or-later
- epel 9: cscppc 2.2.8-1.el9 Β· GPLv3+
- fedora 43: cscppc 2.2.8-1.fc43 Β· GPL-3.0-or-later
- fedora 44: cscppc 2.2.8-1.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms