VTKcppcheckSuppressions.txt 4.81 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//=========================================================================
//
//  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,
Sean McBride's avatar
Sean McBride committed
16
// at least on Mac OS X with cppcheck 1.72.
17
18
19

// To run:
// cd /path/to/VTK/
20
// cppcheck --platform=unix64 --enable=style -q --suppressions-list=CMake/VTKcppcheckSuppressions.txt --template='{id},{file}:{line},{severity},{message}' -j8 .
21
22
23
24
25
26
27
28
29
30
31
32

// 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
unpreciseMathCall

33
34
35
// VTK assumes IEEE 754 floats, so this warning isn't useful.
memsetClassFloat

36
37
38
39
40
// There are just too many of these to manage, so suppress them all.  Can look again one day.
clarifyCalculation
cstyleCast
invalidscanf
noCopyConstructor
41
noExplicitConstructor
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
57
58
arrayIndexOutOfBounds:Common/DataModel/vtkCell.h
assignBoolToPointer:Common/Math/vtkMatrix4x4.h
59
AssignmentAddressToInteger:Common/Math/vtkPolynomialSolversUnivariate.cxx
Sean McBride's avatar
Sean McBride committed
60
clarifyCondition:Rendering/Core/Testing/Cxx/TestInteractorStyleImageProperty.cxx
61
comparisonOfBoolWithInvalidComparator:Rendering/Label/vtkLabeledTreeMapDataMapper.cxx
62
copyCtorPointerCopying:IO/NetCDF/vtkSLACReader.cxx
63
64
65
66
67
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
68
knownConditionTrueFalse:Common/Core/Testing/Cxx/TestDataArrayIterators.cxx
69
70
memleak:Common/Core/Testing/Cxx/TestGarbageCollector.cxx
memleak:Examples/Infovis/Cxx/MultiView.cxx
71
memleak:Imaging/Hybrid/vtkSurfaceReconstructionFilter.cxx
72
memleak:IO/Image/vtkJPEGReader.cxx
73
multiCondition:Filters/Matlab/vtkMatlabMexAdapter.cxx
74
75
76
negativeIndex:Common/DataModel/vtkPerlinNoise.cxx
nullPointer:Interaction/Style/vtkInteractorStyleJoystickActor.cxx
nullPointer:Interaction/Style/vtkInteractorStyleTrackballActor.cxx
77
nullPointer:IO/Exodus/vtkExodusIIReaderParser.cxx
78
nullPointerRedundantCheck:Filters/General/vtkMultiThreshold.cxx
79
oppositeInnerCondition:Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx
80
pointerPositive:Common/DataModel/vtkUnstructuredGridCellIterator.cxx
81
redundantAssignInSwitch:Wrapping/Tools/vtkWrapPythonOverload.c
Sean McBride's avatar
Sean McBride committed
82
stlIfStrFind:Infovis/Core/vtkPipelineGraphSource.cxx
83
unassignedVariable:Common/Transforms/vtkHomogeneousTransform.cxx
84
unassignedVariable:Filters/Core/vtkFlyingEdges3D.cxx
85
86
unassignedVariable:Rendering/Core/vtkCamera.cxx
uninitdata:IO/Import/vtk3DSImporter.cxx
Sean McBride's avatar
Sean McBride committed
87
88
89
90
91
92
uninitvar:Common/Transforms/vtkAbstractTransform.cxx
uninitvar:Common/Transforms/vtkHomogeneousTransform.cxx
uninitvar:Common/Transforms/vtkLinearTransform.cxx
uninitvar:Common/Transforms/vtkPerspectiveTransform.cxx
uninitvar:Common/Transforms/vtkTransform2D.cxx
uninitvar:Filters/SMP/vtkSMPTransform.cxx
93
uninitvar:IO/Exodus/vtkExodusIIReader.cxx
Sean McBride's avatar
Sean McBride committed
94
95
uninitvar:Rendering/ContextOpenGL2/vtkOpenGLContextDevice2D.cxx
uninitvar:Rendering/Core/vtkCamera.cxx
96
unsafeClassCanLeak:Filters/General/vtkDensifyPolyData.cxx
97
unsafeClassCanLeak:GUISupport/Qt/QVTKInteractorInternal.h
98
unsafeClassCanLeak:Interaction/Widgets/vtkBiDimensionalRepresentation.h
99
100
unusedAllocatedMemory:IO/Legacy/vtkDataWriter.cxx
unusedStructMember:Common/Misc/vtkHeap.cxx
101
uselessAssignmentArg:Common/DataModel/vtkReebGraph.cxx
102
uselessAssignmentPtrArg:Filters/General/vtkYoungsMaterialInterface.cxx
103
uselessAssignmentPtrArg:IO/Parallel/vtkPImageWriter.cxx
104
105
106
107
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.
108
duplInheritedMember
109
110
111
112
113
invalidPointerCast
memleakOnRealloc
noConstructor
operatorEq
postfixOperator
Sean McBride's avatar
Sean McBride committed
114
unusedStructMember
115

Sean McBride's avatar
Sean McBride committed
116
// To investigate further...
117
memleak:Wrapping/Tools/vtkParsePreprocess.c
Sean McBride's avatar
Sean McBride committed
118
nullPointerRedundantCheck:IO/Exodus/vtkExodusIIReaderParser.cxx