forked from Kitware/VTK
/
VTKcppcheckSuppressions.txt
113 lines (102 loc) · 4.17 KB
/
VTKcppcheckSuppressions.txt
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
//=========================================================================
//
// Program: Visualization Toolkit
//
// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// All rights reserved.
// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
//=========================================================================
// This file contains enough suppressions to result in no cppcheck warnings,
// at least on Mac OS X 10.9 with cppcheck 1.71.
// To run:
// cd /path/to/VTK/
// cppcheck --platform=unix64 --enable=style -q --suppressions-list=CMake/VTKcppcheckSuppressions.txt --template='{id},{file}:{line},{severity},{message}' -j8 .
// Suppress everything from ThirdParty.
*:ThirdParty/*
// Similarly, these aren't really part of VTK proper.
*:Utilities/KWSys/*
*:Utilities/MetaIO/*
// Can't fix in portable way for all VTK-supported platforms.
duplicateExpression:IO/PostgreSQL/vtkPostgreSQLQuery.cxx
obsoleteFunctionsasctime
unpreciseMathCall
// VTK assumes IEEE 754 floats, so this warning isn't useful.
memsetClassFloat
// There are just too many of these to manage, so suppress them all. Can look again one day.
clarifyCalculation
cstyleCast
invalidscanf
invalidscanf_libc
noCopyConstructor
noExplicitConstructor
operatorEqVarError
passedByValue
redundantAssignment
uninitMemberVar
unreadVariable
useInitializationList
variableScope
// Gives too many false positives.
assertWithSideEffect
argumentSize
// False positives.
argumentSize:Common/DataModel/vtkAMRBox.cxx
argumentSize:Common/DataModel/vtkStructuredGrid.h
arrayIndexOutOfBounds:Common/DataModel/vtkCell.h
assignBoolToPointer:Common/Math/vtkMatrix4x4.h
comparisonOfBoolWithInvalidComparator:Rendering/Label/vtkLabeledTreeMapDataMapper.cxx
deallocDealloc:Wrapping/Tools/vtkParseMerge.c
duplicateExpression:Common/Math/Testing/Cxx/TestPolynomialSolversUnivariate.cxx
duplicateExpression:Filters/General/vtkContourTriangulator.cxx
duplicateExpression:Filters/General/vtkVoxelContoursToSurfaceFilter.cxx
invalidPrintfArgType_int:Wrapping/PythonCore/vtkPythonUtil.cxx
knownConditionTrueFalse:Common/Core/Testing/Cxx/TestDataArrayIterators.cxx
memleak:Common/Core/Testing/Cxx/TestGarbageCollector.cxx
memleak:Examples/Infovis/Cxx/MultiView.cxx
memleak:Imaging/Hybrid/vtkSurfaceReconstructionFilter.cxx
multiCondition:Filters/Matlab/vtkMatlabMexAdapter.cxx
negativeIndex:Common/DataModel/vtkPerlinNoise.cxx
nullPointer:Interaction/Style/vtkInteractorStyleJoystickActor.cxx
nullPointer:Interaction/Style/vtkInteractorStyleTrackballActor.cxx
nullPointer:IO/Exodus/vtkExodusIIReaderParser.cxx
oppositeInnerCondition:Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx
pointerPositive:Common/DataModel/vtkUnstructuredGridCellIterator.cxx
redundantAssignInSwitch:Wrapping/Tools/vtkWrapPythonOverload.c
unassignedVariable:Common/Transforms/vtkHomogeneousTransform.cxx
unassignedVariable:Rendering/Core/vtkCamera.cxx
uninitdata:IO/Import/vtk3DSImporter.cxx
uninitvar:IO/Exodus/vtkExodusIIReader.cxx
unsafeClassCanLeak:Filters/General/vtkDensifyPolyData.cxx
unsafeClassCanLeak:Interaction/Widgets/vtkBiDimensionalRepresentation.h
unsafeClassCanLeak:Views/Qt/vtkQtListView.h:
unusedAllocatedMemory:IO/Legacy/vtkDataWriter.cxx
unusedStructMember:Common/Misc/vtkHeap.cxx
uselessAssignmentPtrArg:Filters/General/vtkYoungsMaterialInterface.cxx
uselessAssignmentPtrArg:IO/Parallel/vtkPImageWriter.cxx
uselessAssignmentPtrArg:Wrapping/Tools/vtkParse.tab.c
zerodiv:Filters/ParallelFlowPaths/Testing/Cxx/TestPStreamGeometry.cxx
// There are a fair number of these, but they are probably worth working through.
nullPointerRedundantCheck
duplInheritedMember
uninitvar
unusedStructMember
redundantCondition
stlIfStrFind
catchExceptionByValue
clarifyCondition
invalidPointerCast
memleakOnRealloc
noConstructor
operatorEq
postfixOperator
unnecessaryQualification
unusedVariable
// Unsure about these.
exceptRethrowCopy:IO/Core/vtkUTF8TextCodec.cxx
memleak:Wrapping/Tools/vtkParsePreprocess.c
unsafeClassCanLeak:GUISupport/Qt/QVTKInteractorInternal.h