aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-16 11:54:04 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-16 11:54:04 +1100
commit846b5e783de55217deb91b09b3556aaa1775dcdc (patch)
treee3441f6ac6176db6879683ab8ff0400d7b89fc34
parent1952e9c4e118ab03e62935d30022568aca506bf9 (diff)
downloadscintilla-mirror-846b5e783de55217deb91b09b3556aaa1775dcdc.tar.gz
Backport: Suppress warnings from cppcheck 1.85.
The useStlAlgorithm suggestions may be worth investigation but they are not obvious so should not be in the default messages for now. Backport of changeset 7116:a0b495cddb79.
-rw-r--r--cppcheck.suppress10
1 files changed, 10 insertions, 0 deletions
diff --git a/cppcheck.suppress b/cppcheck.suppress
index bbcc0b04e..b89562469 100644
--- a/cppcheck.suppress
+++ b/cppcheck.suppress
@@ -5,9 +5,17 @@
// 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
+
// Some non-explicit constructors are used for conversions or are private to lexers
noExplicitConstructor
+// Document is checking for a change by called methods and cppcheck isn't considering escape
+knownConditionTrueFalse:scintilla/src/Document.cxx
+
// ScintillaDocument is providing an API and there are no consumers of the API inside Scintilla
unusedFunction:scintilla/qt/ScintillaEdit/ScintillaDocument.cpp
@@ -33,6 +41,7 @@ variableScope:scintilla/lexers/LexLaTeX.cxx
copyCtorAndEqOperator:scintilla/lexers/LexLaTeX.cxx
variableScope:scintilla/lexers/LexMetapost.cxx
variableScope:scintilla/lexers/LexModula.cxx
+variableScope:scintilla/lexers/LexMSSQL.cxx
variableScope:scintilla/lexers/LexNimrod.cxx
variableScope:scintilla/lexers/LexNsis.cxx
variableScope:scintilla/lexers/LexOpal.cxx
@@ -43,6 +52,7 @@ uninitMemberVar:scintilla/lexers/LexRuby.cxx
variableScope:scintilla/lexers/LexSpecman.cxx
clarifyCalculation:scintilla/lexers/LexTADS3.cxx
invalidscanf:scintilla/lexers/LexTCMD.cxx
+knownConditionTrueFalse:scintilla/lexers/LexTCMD.cxx
variableScope:scintilla/lexers/LexTeX.cxx
knownConditionTrueFalse:scintilla/lexers/LexVerilog.cxx
variableScope:scintilla/lexers/LexVHDL.cxx