File: cppcheck.suppress

package info (click to toggle)
scite 4.4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,928 kB
  • sloc: cpp: 145,539; ansic: 19,277; python: 6,120; makefile: 806; perl: 200; sh: 184; sql: 160; objc: 18; ruby: 6; tcl: 6; php: 4
file content (218 lines) | stat: -rw-r--r-- 9,740 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// File to suppress cppcheck warnings for files that will not be fixed.
// Does not suppress warnings where an additional occurrence of the warning may be of interest.

// Coding style is to use assignments in constructor when there are many
// members to initialize or the initialization is complex or has comments.
useInitializationList

// These may be interesting but its not clear without examining each instance closely
// Would have to ensure that any_of/all_of has same early/late exits as current code and
// produces same result on empty collections
useStlAlgorithm

// Written with variable for consistency
knownArgument:scintilla/src/SparseVector.h
knownArgument:scintilla/src/RESearch.cxx

// The two sections are for different purposes: C1 control set and UTF-8 invalid bytes
duplicateCondition:scintilla/src/Editor.cxx

// Appears to not understand lambda
knownConditionTrueFalse:scintilla/src/PerLine.cxx

// Some non-explicit constructors are used for conversions or are private to lexers
noExplicitConstructor

// MarginView access to all bits is safe and is better defined in later versions of C++
shiftTooManyBitsSigned:scintilla/src/MarginView.cxx

// The styler parameter is not const as LexAccessor::operator[] is not const
constParameter:scintilla/lexlib/StyleContext.cxx

// ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla
unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp

// moc_ files show #error as they are not built with standard context
preprocessorErrorDirective:scintilla/qt/*.cpp

// moc_ files are not understood by cppcheck
noValidConfiguration

// The performance cost of by-value passing is often small and using a reference decreases
// code legibility.
passedByValue

// Suppress most lexer warnings since the lexers are maintained by others
redundantCondition:scintilla/lexers/LexA68k.cxx
constParameter:scintilla/lexers/LexAbaqus.cxx
constParameter:scintilla/lexers/LexAda.cxx
constParameter:scintilla/lexers/LexAsn1.cxx
compareBoolExpressionWithInt:scintilla/lexers/LexAU3.cxx
knownConditionTrueFalse:scintilla/lexers/LexAU3.cxx
shadowVariable:scintilla/lexers/LexAU3.cxx
constParameter:scintilla/lexers/LexBaan.cxx
unreadVariable:scintilla/lexers/LexBaan.cxx
constParameter:scintilla/lexers/LexBash.cxx
uninitMemberVar:scintilla/lexers/LexBash.cxx
variableScope:scintilla/lexers/LexBash.cxx
knownConditionTrueFalse:scintilla/lexers/LexBash.cxx
variableScope:scintilla/lexers/LexBatch.cxx
constParameter:scintilla/lexers/LexBullant.cxx
variableScope:scintilla/lexers/LexCmake.cxx
constParameter:scintilla/lexers/LexCmake.cxx
knownConditionTrueFalse:scintilla/lexers/LexCmake.cxx
constParameter:scintilla/lexers/LexCLW.cxx
constParameter:scintilla/lexers/LexCOBOL.cxx
constParameter:scintilla/lexers/LexCoffeeScript.cxx
constParameter:scintilla/lexers/LexCPP.cxx
variableScope:scintilla/lexers/LexCSS.cxx
constParameter:scintilla/lexers/LexDataflex.cxx
variableScope:scintilla/lexers/LexDataflex.cxx
knownConditionTrueFalse:scintilla/lexers/LexECL.cxx
constParameter:scintilla/lexers/LexEiffel.cxx
variableScope:scintilla/lexers/LexErlang.cxx
knownConditionTrueFalse:scintilla/lexers/LexEScript.cxx
constParameter:scintilla/lexers/LexFortran.cxx
constParameter:scintilla/lexers/LexGap.cxx
variableScope:scintilla/lexers/LexGui4Cli.cxx
constParameter:scintilla/lexers/LexHaskell.cxx
constParameter:scintilla/lexers/LexHex.cxx
constParameter:scintilla/lexers/LexHTML.cxx
variableScope:scintilla/lexers/LexInno.cxx
constParameter:scintilla/lexers/LexJSON.cxx
variableScope:scintilla/lexers/LexLaTeX.cxx
constParameter:scintilla/lexers/LexLaTeX.cxx
constParameter:scintilla/lexers/LexLisp.cxx
constParameter:scintilla/lexers/LexMagik.cxx
knownArgument:scintilla/lexers/LexMarkdown.cxx
constParameter:scintilla/lexers/LexMatlab.cxx
unreadVariable:scintilla/lexers/LexMatlab.cxx
variableScope:scintilla/lexers/LexMetapost.cxx
constParameter:scintilla/lexers/LexModula.cxx
variableScope:scintilla/lexers/LexModula.cxx
variableScope:scintilla/lexers/LexMSSQL.cxx
shadowArgument:scintilla/lexers/LexMySQL.cxx
constParameter:scintilla/lexers/LexNim.cxx
constParameter:scintilla/lexers/LexNimrod.cxx
variableScope:scintilla/lexers/LexNimrod.cxx
variableScope:scintilla/lexers/LexNsis.cxx
constParameter:scintilla/lexers/LexNsis.cxx
knownConditionTrueFalse:scintilla/lexers/LexNsis.cxx
variableScope:scintilla/lexers/LexOpal.cxx
constParameter:scintilla/lexers/LexOpal.cxx
constParameter:scintilla/lexers/LexOScript.cxx
constParameter:scintilla/lexers/LexPascal.cxx
variableScope:scintilla/lexers/LexPB.cxx
constParameter:scintilla/lexers/LexPerl.cxx
constParameter:scintilla/lexers/LexPLM.cxx
constParameter:scintilla/lexers/LexPython.cxx
shadowVariable:scintilla/lexers/LexPowerPro.cxx
knownConditionTrueFalse:scintilla/lexers/LexPowerPro.cxx
constParameter:scintilla/lexers/LexProgress.cxx
variableScope:scintilla/lexers/LexProgress.cxx
constParameter:scintilla/lexers/LexRaku.cxx
variableScope:scintilla/lexers/LexRaku.cxx
redundantInitialization:scintilla/lexers/LexRegistry.cxx
constParameter:scintilla/lexers/LexRuby.cxx
variableScope:scintilla/lexers/LexRuby.cxx
uninitMemberVar:scintilla/lexers/LexRuby.cxx
constParameter:scintilla/lexers/LexRust.cxx
knownConditionTrueFalse:scintilla/lexers/LexRust.cxx
constParameter:scintilla/lexers/LexScriptol.cxx
variableScope:scintilla/lexers/LexSpecman.cxx
constParameter:scintilla/lexers/LexSpice.cxx
unreadVariable:scintilla/lexers/LexSpice.cxx
constParameter:scintilla/lexers/LexSTTXT.cxx
constParameter:scintilla/lexers/LexTACL.cxx
knownConditionTrueFalse:scintilla/lexers/LexTACL.cxx
clarifyCalculation:scintilla/lexers/LexTADS3.cxx
constParameter:scintilla/lexers/LexTADS3.cxx
constParameter:scintilla/lexers/LexTAL.cxx
invalidscanf:scintilla/lexers/LexTCMD.cxx
constParameter:scintilla/lexers/LexTeX.cxx
variableScope:scintilla/lexers/LexTeX.cxx
knownArgument:scintilla/lexers/LexTxt2tags.cxx
constParameter:scintilla/lexers/LexVB.cxx
knownArgument:scintilla/lexers/LexVerilog.cxx
constParameter:scintilla/lexers/LexVerilog.cxx
constParameter:scintilla/lexers/LexVHDL.cxx
shadowVariable:scintilla/lexers/LexVHDL.cxx
unreadVariable:scintilla/lexers/LexVHDL.cxx
variableScope:scintilla/lexers/LexVHDL.cxx
unreadVariable:scintilla/lexers/LexVisualProlog.cxx
constParameter:scintilla/lexers/LexYAML.cxx

constVariable:scintilla/lexers/LexA68k.cxx
constVariable:scintilla/lexers/LexAPDL.cxx
constVariable:scintilla/lexers/LexASY.cxx
constVariable:scintilla/lexers/LexAU3.cxx
constVariable:scintilla/lexers/LexAVE.cxx
constVariable:scintilla/lexers/LexAVS.cxx
constVariable:scintilla/lexers/LexAsn1.cxx
constVariable:scintilla/lexers/LexBibTeX.cxx
constVariable:scintilla/lexers/LexCLW.cxx
constVariable:scintilla/lexers/LexCOBOL.cxx
constVariable:scintilla/lexers/LexCSS.cxx
constVariable:scintilla/lexers/LexCaml.cxx
constVariable:scintilla/lexers/LexCmake.cxx
constVariable:scintilla/lexers/LexCoffeeScript.cxx
constVariable:scintilla/lexers/LexConf.cxx
constVariable:scintilla/lexers/LexCrontab.cxx
constVariable:scintilla/lexers/LexCsound.cxx
constVariable:scintilla/lexers/LexDMAP.cxx
constVariable:scintilla/lexers/LexDataflex.cxx
constVariable:scintilla/lexers/LexECL.cxx
constVariable:scintilla/lexers/LexEScript.cxx
constVariable:scintilla/lexers/LexEiffel.cxx
constVariable:scintilla/lexers/LexErlang.cxx
constVariable:scintilla/lexers/LexFlagship.cxx
constVariable:scintilla/lexers/LexForth.cxx
constVariable:scintilla/lexers/LexGAP.cxx
constVariable:scintilla/lexers/LexFortran.cxx
constVariable:scintilla/lexers/LexGui4Cli.cxx
constVariable:scintilla/lexers/LexInno.cxx
constVariable:scintilla/lexers/LexKVIrc.cxx
constVariable:scintilla/lexers/LexKix.cxx
constVariable:scintilla/lexers/LexLout.cxx
constVariable:scintilla/lexers/LexMetapost.cxx
constVariable:scintilla/lexers/LexMMIXAL.cxx
constVariable:scintilla/lexers/LexMSSQL.cxx
constVariable:scintilla/lexers/LexMagik.cxx
constVariable:scintilla/lexers/LexMatlab.cxx
constVariable:scintilla/lexers/LexModula.cxx
constVariable:scintilla/lexers/LexNsis.cxx
constVariable:scintilla/lexers/LexOpal.cxx
constVariable:scintilla/lexers/LexPB.cxx
constVariable:scintilla/lexers/LexPerl.cxx
constVariable:scintilla/lexers/LexPOV.cxx
constVariable:scintilla/lexers/LexPS.cxx
constVariable:scintilla/lexers/LexPascal.cxx
constVariable:scintilla/lexers/LexPowerPro.cxx
constVariable:scintilla/lexers/LexPowerShell.cxx
constVariable:scintilla/lexers/LexR.cxx
constVariable:scintilla/lexers/LexRebol.cxx
constVariable:scintilla/lexers/LexSAS.cxx
constVariable:scintilla/lexers/LexSML.cxx
constVariable:scintilla/lexers/LexSorcus.cxx
constVariable:scintilla/lexers/LexSpecman.cxx
constVariable:scintilla/lexers/LexStata.cxx
constVariable:scintilla/lexers/LexTACL.cxx
constVariable:scintilla/lexers/LexTADS3.cxx
constVariable:scintilla/lexers/LexTAL.cxx
constVariable:scintilla/lexers/LexTCL.cxx
constVariable:scintilla/lexers/LexTCMD.cxx
constVariable:scintilla/lexers/LexTeX.cxx
constVariable:scintilla/lexers/LexVB.cxx
constVariable:scintilla/lexers/LexVHDL.cxx

// bp.itBracket not actually redundant as needed by return statements
redundantAssignment:scintilla/lexers/LexCPP.cxx

// Suppress everything in test example files
*:scintilla/lexilla/test/examples/*

// Suppress everything in catch.hpp as won't be changing
*:scintilla/test/unit/catch.hpp
// For now, suppress all test source files as, since Catch 2, cppcheck shows many warnings showing
// it doesn't understand the REQUIRE macro
*:scintilla/test/unit/*.cxx