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       •   ../../test.c
69
70       •   config-temp/qemu-conf.c
71
72       •   scripts/kconfig/conf.c
73
74       •   scripts/kconfig/zconf.tab.c
75
76       •   /tmp/cov-mockbuild/
77
78       If cscppc is installed on system, the following command activates the
79       wrapper:
80
81           export PATH="`cscppc --print-path-to-wrap`:$PATH"
82

OPTIONS

84       --help
85           Prints basic usage information.
86
87       --print-path-to-wrap
88           Prints path to the directory with symlinks to the cscppc
89           executable.
90

EXIT STATUS

92       cscppc propagates the exit status returned by the compiler (in case
93       cscppc succeeds to run the compiler). The exit status returned by
94       cppcheck does not affect the resulting exit status.
95

ENVIRONMENT VARIABLES

97       DEBUG_CSCPPC
98           If set to a non-empty string, cscppc outputs the list of parameters
99           given to cppcheck to the standard output.
100
101       CSCPPC_ADD_OPTS
102           cscppc expects a colon-separated list of Cppcheck options that
103           should be appended to command line prior to invoking Cppcheck. The
104           options are appended even if they already appear in the command
105           line and they are always appended at the end of the command line.
106

BUGS

108       Please report bugs and feature requests at
109       https://github.com/kdudka/cscppc .
110

AUTHOR

112       Written by Kamil Dudka.
113

COPYING

115       Copyright (C) 2013-2014 Red Hat, Inc. Free use of this software is
116       granted under the terms of the GNU General Public License (GPL). See
117       the COPYING file for details.
118
119
120
121                                  05/21/2021                         CSCPPC(1)
Impressum