1CSCPPC(1)                                                            CSCPPC(1)
2
3
4

NAME

6       cscppc - a compiler wrapper that runs cppcheck in background
7

SYNOPSIS

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

DESCRIPTION

12       cscppc is a compiler wrapper that runs cppcheck in background. Create a
13       symbolic link to cscppc named as your compiler (gcc, g++, ...) and put
14       it to your $PATH.
15
16       The following parameters are given to cppcheck by default:
17
18       •   -D__GNUC__
19
20       •   -D__STDC__
21
22       •   -D__i386__       [32bit architecture only]
23
24       •   -D__WORDSIZE=32  [32bit architecture only]
25
26       •   -D__x86_64__     [64bit architecture only]
27
28       •   -D__WORDSIZE=64  [64bit architecture only]
29
30       •   --inline-suppr
31
32       •   --quiet
33
34       •   --template="{file}:{line}: {severity}: {id}: {message}"
35
36       •   --suppressions-list=/usr/share/cscppc/default.supp
37
38       The following parameters are passed to cppcheck from compiler’s command
39       line:
40
41       •   -D...
42
43       •   -I...
44
45       The following file extensions are recognized as C/C++ source files:
46
47       •   c
48
49       •   C
50
51       •   cc
52
53       •   cpp
54
55       •   cxx
56
57       If cscppc is installed on system, the following command activates the
58       wrapper:
59
60           export PATH="`cscppc --print-path-to-wrap`:$PATH"
61

OPTIONS

63       --help
64           Prints basic usage information.
65
66       --print-path-to-wrap
67           Prints path to the directory with symlinks to the cscppc
68           executable.
69

EXIT STATUS

71       cscppc propagates the exit status returned by the compiler (in case
72       cscppc succeeds to run the compiler). The exit status returned by
73       cppcheck does not affect the resulting exit status.
74

ENVIRONMENT VARIABLES

76       DEBUG_CSCPPC
77           If set to a non-empty string, cscppc outputs the list of parameters
78           given to cppcheck to the standard output.
79
80       CSCPPC_ADD_OPTS
81           cscppc expects a colon-separated list of Cppcheck options that
82           should be appended to command line prior to invoking Cppcheck. The
83           options are appended even if they already appear in the command
84           line and they are always appended at the end of the command line.
85

BUGS

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

AUTHOR

91       Written by Kamil Dudka.
92

COPYING

94       Copyright (C) 2013-2014 Red Hat, Inc. Free use of this software is
95       granted under the terms of the GNU General Public License (GPL). See
96       the COPYING file for details.
97
98
99
100                                  11/11/2021                         CSCPPC(1)
Impressum