forked from steveicarus/iverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcppcheck.sup
341 lines (333 loc) · 9.72 KB
/
cppcheck.sup
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
// The following three files are copied directly from GTKWave and we do not
// have control over them. Tony has a specific programming style so these
// problems will not be fixed.
// fstapi.c from GTKWave
asctimeCalled:fstapi.c:955
allocaCalled:fstapi.c:2386
unreadVariable:fstapi.c:204
unreadVariable:fstapi.c:205
unreadVariable:fstapi.c:1645
unreadVariable:fstapi.c:1653
unreadVariable:fstapi.c:1657
unreadVariable:fstapi.c:1662
unreadVariable:fstapi.c:1685
unreadVariable:fstapi.c:1691
unreadVariable:fstapi.c:1692
unreadVariable:fstapi.c:1696
unreadVariable:fstapi.c:2818
unreadVariable:fstapi.c:6521
variableScope:fstapi.c:684
variableScope:fstapi.c:1078
variableScope:fstapi.c:1385
variableScope:fstapi.c:1386
variableScope:fstapi.c:1387
variableScope:fstapi.c:1444
variableScope:fstapi.c:2056
variableScope:fstapi.c:2189
variableScope:fstapi.c:2622
variableScope:fstapi.c:2623
variableScope:fstapi.c:2812
variableScope:fstapi.c:2813
variableScope:fstapi.c:2814
variableScope:fstapi.c:2815
variableScope:fstapi.c:2816
variableScope:fstapi.c:2817
variableScope:fstapi.c:2818
variableScope:fstapi.c:2919
variableScope:fstapi.c:2920
variableScope:fstapi.c:2924
variableScope:fstapi.c:3161
variableScope:fstapi.c:3200
variableScope:fstapi.c:3201
variableScope:fstapi.c:3920
variableScope:fstapi.c:4098
variableScope:fstapi.c:4100
variableScope:fstapi.c:4542
variableScope:fstapi.c:4543
variableScope:fstapi.c:4552
variableScope:fstapi.c:4815
variableScope:fstapi.c:5086
variableScope:fstapi.c:5089
variableScope:fstapi.c:5585
variableScope:fstapi.c:5589
variableScope:fstapi.c:5590
variableScope:fstapi.c:5748
variableScope:fstapi.c:5806
variableScope:fstapi.c:6119
variableScope:fstapi.c:6122
variableScope:fstapi.c:6416
variableScope:fstapi.c:6521
variableScope:fstapi.c:6522
variableScope:fstapi.c:6553
variableScope:fstapi.c:6781
variableScope:fstapi.c:6957
variableScope:fstapi.c:6958
variableScope:fstapi.c:6959
// These functions are not used by Icarus
// fstReaderClrFacProcessMask()
unusedFunction:fstapi.c:3652
// fstReaderClrFacProcessMaskAll()
unusedFunction:fstapi.c:3681
// fstReaderGetAliasCount()
unusedFunction:fstapi.c:3744
// fstReaderGetCurrentFlatScope()
unusedFunction:fstapi.c:3490
// fstReaderGetCurrentScopeLen()
unusedFunction:fstapi.c:3587
// fstReaderGetCurrentScopeUserInfo()
unusedFunction:fstapi.c:3504
// fstReaderGetDateString()
unusedFunction:fstapi.c:3772
// fstReaderGetDoubleEndianMatchState()
unusedFunction:fstapi.c:3758
// fstReaderGetDumpActivityChangeTime()
unusedFunction:fstapi.c:3800
// fstReaderGetDumpActivityChangeValue()
unusedFunction:fstapi.c:3815
// fstReaderGetEndTime()
unusedFunction:fstapi.c:3709
// fstReaderGetFacProcessMask()
unusedFunction:fstapi.c:3615
// fstReaderGetFileType()
unusedFunction:fstapi.c:3779
// fstReaderGetFseekFailed()
unusedFunction:fstapi.c:3600
// fstReaderGetMaxHandle()
unusedFunction:fstapi.c:3737
// fstReaderGetMemoryUsedByWriter()
unusedFunction:fstapi.c:3716
// fstReaderGetNumberDumpActivityChanges()
unusedFunction:fstapi.c:3793
// fstReaderGetScopeCount()
unusedFunction:fstapi.c:3723
// fstReaderGetStartTime()
unusedFunction:fstapi.c:3702
// fstReaderGetTimescale()
unusedFunction:fstapi.c:3695
// fstReaderGetTimezero()
unusedFunction:fstapi.c:3786
// fstReaderGetValueChangeSectionCount()
unusedFunction:fstapi.c:3751
// fstReaderGetValueFromHandleAtTime()
unusedFunction:fstapi.c:6001
// fstReaderGetVarCount()
unusedFunction:fstapi.c:3730
// fstReaderGetVersionString()
unusedFunction:fstapi.c:3765
// fstReaderIterBlocks()
unusedFunction:fstapi.c:4964
// fstReaderIterBlocksSetNativeDoublesOnCallback()
unusedFunction:fstapi.c:3865
// fstReaderIterateHier()
unusedFunction:fstapi.c:4094
// fstReaderIterateHierRewind()
unusedFunction:fstapi.c:4074
// fstReaderOpen()
unusedFunction:fstapi.c:4862
// fstReaderOpenForUtilitiesOnly()
unusedFunction:fstapi.c:4854
// fstReaderPushScope()
unusedFunction:fstapi.c:3552
// fstReaderResetScope()
unusedFunction:fstapi.c:3541
// fstReaderSetFacProcessMask()
unusedFunction:fstapi.c:3634
// fstReaderSetFacProcessMaskAll()
unusedFunction:fstapi.c:3670
// fstReaderSetLimitTimeRange()
unusedFunction:fstapi.c:3830
// fstReaderSetUnlimitedTimeRange()
unusedFunction:fstapi.c:3843
// fstReaderSetVcdExtensions()
unusedFunction:fstapi.c:3854
// fstUtilityExtractEnumTableFromString()
unusedFunction:fstapi.c:6954
// fstUtilityFreeEnumTable()
unusedFunction:fstapi.c:7015
// fstWriterCreateEnumTable()
unusedFunction:fstapi.c:2807
// fstWriterCreateVar2()
unusedFunction:fstapi.c:2609
// fstWriterEmitEnumTableRef()
unusedFunction:fstapi.c:2902
// fstWriterEmitValueChangeVec32()
unusedFunction:fstapi.c:3054
// fstWriterEmitValueChangeVec64()
unusedFunction:fstapi.c:3103
// fstWriterEmitVariableLengthValueChange()
unusedFunction:fstapi.c:3154
// fstWriterGetFseekFailed()
unusedFunction:fstapi.c:2592
// fstWriterSetAttrEnd()
unusedFunction:fstapi.c:2795
// fstWriterSetComment()
unusedFunction:fstapi.c:2441
// fstWriterSetEnvVar()
unusedFunction:fstapi.c:2453
// fstWriterSetFileType()
unusedFunction:fstapi.c:2316
// fstWriterSetParallelMode()
unusedFunction:fstapi.c:2552
// fstWriterSetTimezero()
unusedFunction:fstapi.c:2517
// fstWriterSetValueList()
unusedFunction:fstapi.c:2447
// lxt2_write.c from GTKWave
allocaCalled:lxt2_write.c:1813
allocaCalled:lxt2_write.c:1819
variableScope:lxt2_write.c:33
variableScope:lxt2_write.c:63
variableScope:lxt2_write.c:196
variableScope:lxt2_write.c:463
variableScope:lxt2_write.c:464
variableScope:lxt2_write.c:523
variableScope:lxt2_write.c:581
variableScope:lxt2_write.c:587
variableScope:lxt2_write.c:1157
variableScope:lxt2_write.c:1613
variableScope:lxt2_write.c:2060
// These functions are not used by Icarus
// lxt2_wr_emit_value_int()
unusedFunction:lxt2_write.c:1611
// lxt2_wr_inc_time_by_delta()
unusedFunction:lxt2_write.c:997
// lxt2_wr_inc_time_by_delta64()
unusedFunction:lxt2_write.c:1007
// lxt2_wr_set_checkpoint_off()
unusedFunction:lxt2_write.c:835
// lxt2_wr_set_checkpoint_on()
unusedFunction:lxt2_write.c:843
// lxt2_wr_set_maxgranule()
unusedFunction:lxt2_write.c:1567
// lxt2_wr_set_partial_preference()
unusedFunction:lxt2_write.c:812
// lxt2_wr_set_timezero()
unusedFunction:lxt2_write.c:2201
// lxt2_wr_symbol_bracket_stripping()
unusedFunction:lxt2_write.c:1581
// lxt2_wr_symbol_find()
unusedFunction:lxt2_write.c:877
// lxt_write.c from GTKWave
shiftNegative:lxt_write.c:2700
shiftNegative:lxt_write.c:2744
variableScope:lxt_write.c:31
variableScope:lxt_write.c:83
variableScope:lxt_write.c:527
variableScope:lxt_write.c:528
variableScope:lxt_write.c:587
variableScope:lxt_write.c:640
variableScope:lxt_write.c:780
variableScope:lxt_write.c:880
variableScope:lxt_write.c:1056
variableScope:lxt_write.c:1057
variableScope:lxt_write.c:1058
variableScope:lxt_write.c:1194
variableScope:lxt_write.c:1850
variableScope:lxt_write.c:2029
variableScope:lxt_write.c:2030
variableScope:lxt_write.c:2147
variableScope:lxt_write.c:2148
variableScope:lxt_write.c:2265
variableScope:lxt_write.c:2266
variableScope:lxt_write.c:2595
variableScope:lxt_write.c:2596
variableScope:lxt_write.c:2597
variableScope:lxt_write.c:2598
// These functions are not used by Icarus
// lt_emit_value_int()
unusedFunction:lxt_write.c:1661
// lt_emit_value_string()
unusedFunction:lxt_write.c:2144
// lt_inc_time_by_delta()
unusedFunction:lxt_write.c:1374
// lt_inc_time_by_delta64()
unusedFunction:lxt_write.c:1384
// lt_set_chg_compress()
unusedFunction:lxt_write.c:1457
// lt_set_dict_compress()
unusedFunction:lxt_write.c:1474
// lt_set_time()
unusedFunction:lxt_write.c:1379
// lt_set_timezero()
unusedFunction:lxt_write.c:2820
// lt_symbol_bracket_stripping()
unusedFunction:lxt_write.c:1585
// lt_symbol_find()
unusedFunction:lxt_write.c:1277
// fastlz.c from GTKWave
unreadVariable:fastlz.c:423
unusedLabel:fastlz.c:545
// These functions are not used by Icarus
// fastlz_compress_level()
unusedFunction:fastlz.c:152
// FASTLZ_COMPRESSOR()
unusedFunction:fastlz.c:164
// FASTLZ_DECOMPRESSOR()
unusedFunction:fastlz.c:418
// lz4.c from GTKWave
unusedStructMember:lz4.c:140
// These functions are not used by Icarus
// LZ4_compress_continue()
unusedFunction:lz4.c:1465
// LZ4_compress_destSize()
unusedFunction:lz4.c:917
// LZ4_compress_fast_force()
unusedFunction:lz4.c:710
// LZ4_compress_forceExtDict()
unusedFunction:lz4.c:1068
// LZ4_compress_limitedOutput()
unusedFunction:lz4.c:1460
// LZ4_compress_limitedOutput_continue()
unusedFunction:lz4.c:1464
// LZ4_compress_limitedOutput_withState()
unusedFunction:lz4.c:1462
// LZ4_compress_withState()
unusedFunction:lz4.c:1463
// LZ4_create()
unusedFunction:lz4.c:1494
// LZ4_createStream()
unusedFunction:lz4.c:940
// LZ4_createStreamDecode()
unusedFunction:lz4.c:1324
// LZ4_decompress_fast_continue()
unusedFunction:lz4.c:1389
// LZ4_decompress_fast_usingDict()
unusedFunction:lz4.c:1444
// LZ4_decompress_fast_withPrefix64k()
unusedFunction:lz4.c:1515
// LZ4_decompress_safe_continue()
unusedFunction:lz4.c:1360
// LZ4_decompress_safe_forceExtDict()
unusedFunction:lz4.c:1450
// LZ4_decompress_safe_usingDict()
unusedFunction:lz4.c:1439
// LZ4_decompress_safe_withPrefix64k()
unusedFunction:lz4.c:1510
// LZ4_freeStream()
unusedFunction:lz4.c:953
// LZ4_freeStreamDecode()
unusedFunction:lz4.c:1330
// LZ4_loadDict()
unusedFunction:lz4.c:961
// LZ4_resetStreamState()
unusedFunction:lz4.c:1487
// LZ4_setStreamDecode()
unusedFunction:lz4.c:1343
// LZ4_sizeofState()
unusedFunction:lz4.c:378
// LZ4_sizeofStreamState()
unusedFunction:lz4.c:1479
// LZ4_slideInputBuffer()
unusedFunction:lz4.c:1501
// LZ4_uncompress()
unusedFunction:lz4.c:1473
// LZ4_uncompress_unknownOutputSize()
unusedFunction:lz4.c:1474
// LZ4_versionNumber()
unusedFunction:lz4.c:376
// The routines in sys_random.c are exact copies from IEEE1364-2005 and
// they have scope warnings that we need to ignore.
variableScope:sys_random.c:46
variableScope:sys_random.c:69
variableScope:sys_random.c:92
variableScope:sys_random.c:147