From 846b5e783de55217deb91b09b3556aaa1775dcdc Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 16 Oct 2018 11:54:04 +1100 Subject: 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. --- cppcheck.suppress | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cppcheck.suppress') 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 -- cgit v1.2.3