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       •   -D__CPPCHECK__
31
32       •   --inline-suppr
33
34       •   --quiet
35
36       •   --template="{file}:{line}: {severity}: {id}(CWE-{cwe}): {message}"
37
38       •   --suppressions-list=/usr/share/cscppc/default.supp
39
40       The following parameters are passed to cppcheck from compiler’s command
41       line:
42
43       •   -D...
44
45       •   -I...
46
47       The following file extensions are recognized as C/C++ source files:
48
49       •   c
50
51       •   C
52
53       •   cc
54
55       •   cpp
56
57       •   cxx
58
59       If cscppc is installed on system, the following command activates the
60       wrapper:
61
62           export PATH="`cscppc --print-path-to-wrap`:$PATH"
63

OPTIONS

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

EXIT STATUS

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

ENVIRONMENT VARIABLES

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

BUGS

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

AUTHOR

93       Written by Kamil Dudka.
94

COPYING

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