From 88460981e1a2c86e61a72a518b02313d7fcb82b1 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Fri, 20 Dec 2024 13:21:34 +1100 Subject: [PATCH] Update suppressions for Cppcheck 2.16. --- cppcheck.suppress | 55 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/cppcheck.suppress b/cppcheck.suppress index 9da560dd..d359d3f4 100644 --- a/cppcheck.suppress +++ b/cppcheck.suppress @@ -31,7 +31,6 @@ passedByValue missingIncludeSystem // Passing temporary string into hidden object creator functions: they do not hold the argument -danglingTemporaryLifetime:lexilla/access/LexillaAccess.cxx returnDanglingLifetime:lexilla/access/LexillaAccess.cxx // cppcheck 2.11 limits checking of complex functions unless --check-level=exhaustive but that @@ -61,6 +60,7 @@ constParameterReference:lexilla/lexers/LexBash.cxx knownConditionTrueFalse:lexilla/lexers/LexBash.cxx variableScope:lexilla/lexers/LexBash.cxx constVariable:lexilla/lexers/LexBasic.cxx +constParameterReference:lexilla/lexers/LexBullant.cxx constParameterReference:lexilla/lexers/LexCLW.cxx knownConditionTrueFalse:lexilla/lexers/LexCLW.cxx variableScope:lexilla/lexers/LexCmake.cxx @@ -105,6 +105,7 @@ unreadVariable:lexilla/lexers/LexJulia.cxx variableScope:lexilla/lexers/LexJulia.cxx variableScope:lexilla/lexers/LexLaTeX.cxx constParameterReference:lexilla/lexers/LexLaTeX.cxx +constParameterReference:lexilla/lexers/LexLisp.cxx constParameterPointer:lexilla/lexers/LexMagik.cxx constParameterReference:lexilla/lexers/LexMagik.cxx constParameterReference:lexilla/lexers/LexMarkdown.cxx @@ -147,6 +148,8 @@ redundantInitialization:lexilla/lexers/LexRegistry.cxx constParameterReference:lexilla/lexers/LexRuby.cxx constParameterReference:lexilla/lexers/LexRust.cxx knownConditionTrueFalse:lexilla/lexers/LexScriptol.cxx +constParameterReference:lexilla/lexers/LexScriptol.cxx +constParameterPointer:lexilla/lexers/LexSmalltalk.cxx variableScope:lexilla/lexers/LexSpecman.cxx unreadVariable:lexilla/lexers/LexSpice.cxx constParameterReference:lexilla/lexers/LexSpice.cxx @@ -157,6 +160,7 @@ clarifyCalculation:lexilla/lexers/LexTADS3.cxx constParameterReference:lexilla/lexers/LexTADS3.cxx constParameterReference:lexilla/lexers/LexTAL.cxx constVariableReference:lexilla/lexers/LexTCL.cxx +constParameterPointer:lexilla/lexers/LexTCMD.cxx invalidscanf:lexilla/lexers/LexTCMD.cxx constParameterReference:lexilla/lexers/LexTeX.cxx variableScope:lexilla/lexers/LexTeX.cxx @@ -166,6 +170,7 @@ constParameterReference:lexilla/lexers/LexVerilog.cxx variableScope:lexilla/lexers/LexVerilog.cxx badBitmaskCheck:lexilla/lexers/LexVerilog.cxx uselessCallsSubstr:lexilla/lexers/LexVerilog.cxx +duplicateCondition:lexilla/lexers/LexVerilog.cxx constParameterReference:lexilla/lexers/LexVHDL.cxx constVariable:lexilla/lexers/LexVHDL.cxx shadowVariable:lexilla/lexers/LexVHDL.cxx @@ -191,12 +196,60 @@ constParameterCallback:lexilla/lexers/LexPython.cxx constParameterCallback:lexilla/lexers/LexScriptol.cxx constParameterCallback:lexilla/lexers/LexVB.cxx +constVariableReference:lexilla/lexers/LexA68k.cxx +constVariableReference:lexilla/lexers/LexAPDL.cxx +constVariableReference:lexilla/lexers/LexASY.cxx +constVariableReference:lexilla/lexers/LexAVE.cxx +constVariableReference:lexilla/lexers/LexAVS.cxx +constVariableReference:lexilla/lexers/LexAU3.cxx +constVariableReference:lexilla/lexers/LexAsn1.cxx constVariableReference:lexilla/lexers/LexBibTeX.cxx +constVariableReference:lexilla/lexers/LexCaml.cxx +constVariableReference:lexilla/lexers/LexCLW.cxx +constVariableReference:lexilla/lexers/LexCmake.cxx +constVariableReference:lexilla/lexers/LexCOBOL.cxx +constVariableReference:lexilla/lexers/LexCoffeeScript.cxx +constVariableReference:lexilla/lexers/LexCsound.cxx constVariableReference:lexilla/lexers/LexCSS.cxx constVariableReference:lexilla/lexers/LexCrontab.cxx +constVariableReference:lexilla/lexers/LexDataflex.cxx +constVariableReference:lexilla/lexers/LexDMAP.cxx +constVariableReference:lexilla/lexers/LexECL.cxx +constVariableReference:lexilla/lexers/LexEiffel.cxx +constVariableReference:lexilla/lexers/LexEScript.cxx +constVariableReference:lexilla/lexers/LexErlang.cxx +constVariableReference:lexilla/lexers/LexFlagship.cxx +constVariableReference:lexilla/lexers/LexForth.cxx +constVariableReference:lexilla/lexers/LexFortran.cxx +constVariableReference:lexilla/lexers/LexGAP.cxx constVariableReference:lexilla/lexers/LexGui4Cli.cxx +constVariableReference:lexilla/lexers/LexKix.cxx +constVariableReference:lexilla/lexers/LexKVIrc.cxx +constVariableReference:lexilla/lexers/LexLout.cxx +constVariableReference:lexilla/lexers/LexMagik.cxx +constVariableReference:lexilla/lexers/LexMatlab.cxx constVariableReference:lexilla/lexers/LexMetapost.cxx +constVariableReference:lexilla/lexers/LexMMIXAL.cxx +constVariableReference:lexilla/lexers/LexMSSQL.cxx +constVariableReference:lexilla/lexers/LexNsis.cxx constVariableReference:lexilla/lexers/LexOpal.cxx +constVariableReference:lexilla/lexers/LexPOV.cxx +constVariableReference:lexilla/lexers/LexPascal.cxx +constVariableReference:lexilla/lexers/LexPB.cxx +constVariableReference:lexilla/lexers/LexPowerPro.cxx +constVariableReference:lexilla/lexers/LexPS.cxx +constVariableReference:lexilla/lexers/LexRebol.cxx +constVariableReference:lexilla/lexers/LexSAS.cxx +constVariableReference:lexilla/lexers/LexSML.cxx +constVariableReference:lexilla/lexers/LexSorcus.cxx +constVariableReference:lexilla/lexers/LexSpecman.cxx +constVariableReference:lexilla/lexers/LexStata.cxx +constVariableReference:lexilla/lexers/LexTACL.cxx +constVariableReference:lexilla/lexers/LexTADS3.cxx +constVariableReference:lexilla/lexers/LexTAL.cxx +constVariableReference:lexilla/lexers/LexTCMD.cxx +constVariableReference:lexilla/lexers/LexTeX.cxx +constVariableReference:lexilla/lexers/LexVHDL.cxx // Suppress everything in test example files *:lexilla/test/examples/*