1 // File to suppress cppcheck warnings for files that will not be fixed.
\r
2 // Does not suppress warnings where an additional occurrence of the warning may be of interest.
\r
3 // Configured for cppcheck 2.11
\r
5 // Coding style is to use assignments in constructor when there are many
\r
6 // members to initialize or the initialization is complex or has comments.
\r
7 useInitializationList
\r
9 // These may be interesting but its not clear without examining each instance closely
\r
10 // Would have to ensure that any_of/all_of has same early/late exits as current code and
\r
11 // produces same result on empty collections
\r
14 // Written with variable for consistency
\r
15 knownArgument:scintilla/src/SparseVector.h
\r
17 // cppcheck 2.11 can't find system headers on Win32.
\r
18 missingIncludeSystem
\r
20 // cppcheck 2.11 limits checking of complex functions unless --check-level=exhaustive
\r
21 checkLevelNormal:scintilla/src/Editor.cxx
\r
23 // The cast converts from 'unsigned char ' to 'char' so isn't unused.
\r
24 // Redundant code: Found unused cast of expression 'leadByte'
\r
25 constStatement:scintilla/src/Document.cxx
\r
27 // ILexer5* is not pointing at logically const
\r
28 constParameterPointer:scintilla/src/Document.cxx
\r
30 // Some non-explicit constructors are used for conversions or are private to lexers
\r
31 noExplicitConstructor
\r
33 // RangesCopy is deliberately returning a copy.
\r
34 // The copy is always mutated so returning a refererence just enables lifetime problems.
\r
35 returnByReference:scintilla/src/Selection.h
\r
37 // MarginView access to all bits is safe and is better defined in later versions of C++
\r
38 shiftTooManyBitsSigned:scintilla/src/MarginView.cxx
\r
40 // DLL entry points are unused inside Scintilla
\r
41 unusedFunction:scintilla/win32/ScintillaDLL.cxx
\r
43 // ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla
\r
44 unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp
\r
46 // Doesn't understand changing dropWentOutside in Editor
\r
47 knownConditionTrueFalse:scintilla/win32/ScintillaWin.cxx
\r
49 // GetData is implementing interface so shouldn't add const
\r
50 constParameterPointer:scintilla/win32/ScintillaWin.cxx
\r
52 // Doesn't handle intptr_t (long long) being signed
\r
53 knownConditionTrueFalse:scintilla/src/Editor.cxx
\r
54 knownConditionTrueFalse:scintilla/src/EditView.cxx
\r
56 // cppcheck seems to believe that unique_ptr<T *[]>::get returns void* instead of T**
\r
57 arithOperationsOnVoidPointer:scintilla/src/PerLine.cxx
\r
58 arithOperationsOnVoidPointer:scintilla/src/PositionCache.cxx
\r
60 // G_DEFINE_TYPE is too complex to pass to cppcheck
\r
61 unknownMacro:scintilla/gtk/PlatGTK.cxx
\r
63 // maskSmooth set depending on preprocessor allowing Wayland definition
\r
64 badBitmaskCheck:scintilla/gtk/ScintillaGTK.cxx
\r
66 // Changing events to const pointers changes signature and would require casts when hooking up
\r
67 constParameterPointer:scintilla/gtk/ScintillaGTK.cxx
\r
68 constParameterCallback:scintilla/gtk/ScintillaGTK.cxx
\r
70 // Difficult to test accessibility so don't change
\r
71 constParameterPointer:scintilla/gtk/ScintillaGTKAccessible.cxx
\r
72 constVariableReference:scintilla/gtk/ScintillaGTKAccessible.cxx
\r
73 constVariablePointer:scintilla/gtk/ScintillaGTKAccessible.cxx
\r
75 // moc_ files show #error as they are not built with standard context
\r
76 preprocessorErrorDirective:scintilla/qt/*.cpp
\r
78 // Doesn't understand Qt slots macro
\r
79 unknownMacro:scintilla/qt/ScintillaEditBase/*.h
\r
81 // The performance cost of by-value passing is often small and using a reference decreases
\r
85 // Suppress everything in catch.hpp as won't be changing
\r
86 *:scintilla/test/unit/catch.hpp
\r
88 // Checks for moves move to variables that are not read but the moved from is checked
\r
89 unreadVariable:scintilla/test/unit/*.cxx
\r
90 accessMoved:scintilla/test/unit/*.cxx
\r
92 // cppcheck fails REQUIRE from Catch
\r
93 comparisonOfFuncReturningBoolError:scintilla/test/unit/*.cxx
\r