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       The following path substrings are black-listed from being scanned by
58       cppcheck:
59
60       ·   conftest.c
61
62       ·   _configtest.c
63
64       ·   /CMakeTmp/
65
66       ·   ../test.c
67
68       If cscppc is installed on system, the following command activates the
69       wrapper:
70
71           export PATH="`cscppc --print-path-to-wrap`:$PATH"
72

OPTIONS

74       --help
75           Prints basic usage information.
76
77       --print-path-to-wrap
78           Prints path to the directory with symlinks to the cscppc
79           executable.
80

EXIT STATUS

82       cscppc propagates the exit status returned by the compiler (in case
83       cscppc succeeds to run the compiler). The exit status returned by
84       cppcheck does not affect the resulting exit status.
85

ENVIRONMENT VARIABLES

87       DEBUG_CSCPPC
88           If set to a non-empty string, cscppc outputs the list of parameters
89           given to cppcheck to the standard output.
90
91       CSCPPC_ADD_OPTS
92           cscppc expects a colon-separated list of Cppcheck options that
93           should be appended to command line prior to invoking Cppcheck. The
94           options are appended even if they already appear in the command
95           line and they are always appended at the end of the command line.
96

BUGS

98       Please report bugs and feature requests at
99       https://github.com/kdudka/cscppc .
100

AUTHOR

102       Written by Kamil Dudka.
103

COPYING

105       Copyright (C) 2013-2014 Red Hat, Inc. Free use of this software is
106       granted under the terms of the GNU General Public License (GPL). See
107       the COPYING file for details.
108
109
110
111                                  02/05/2020                         CSCPPC(1)
Impressum