11/*
22 * Cppcheck - A tool for static C/C++ code analysis
3- * Copyright (C) 2007-2025 Cppcheck team.
3+ * Copyright (C) 2007-2026 Cppcheck team.
44 *
55 * This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ std::vector<checkers::IdMapping> checkers::idMappingAutosar{
2424 {" m0-1-1" , " unreachableCode,duplicateBreak" },
2525 {" m0-1-2" , " unsignedLessThanZero" },
2626 {" m0-1-3" , " unusedVariable,unusedStructMember" },
27- {" a0-1-1" , " unreadVariable,unusedValue, redundantAssignment" },
27+ {" a0-1-1" , " unreadVariable,redundantAssignment" },
2828 {" m0-1-9" , " redundantAssignment,redundantInitialization" },
2929 {" m0-1-10" , " unusedFunction" },
3030 {" m0-2-1" , " overlappingWriteUnion,overlappingWriteFunction" },
@@ -41,7 +41,6 @@ std::vector<checkers::IdMapping> checkers::idMappingAutosar{
4141 {" m5-0-17" , " comparePointers" },
4242 {" m5-0-18" , " comparePointers" },
4343 {" a5-1-4" , " returnDanglingLifetime" },
44- {" a5-2-2" , " cstyleCast" },
4544 {" a5-2-5" , " arrayIndexOutOfBounds,arrayIndexOutOfBoundsCond,pointerOutOfBounds,pointerOutOfBoundsCond,negativeIndex,arrayIndexThenCheck,bufferAccessOutOfBounds,objectIndex,argumentSize" },
4645 {" m5-3-4" , " sizeofFunctionCall" },
4746 {" a5-3-2" , " nullPointer,nullPointerRedundantCheck,nullPointerArithmetic,nullPointerArithmeticRedundantCheck,nullPointerDefaultArg" },
@@ -99,13 +98,13 @@ std::vector<checkers::IdMapping> checkers::idMappingCertCpp{
9998 {" CTR51" , " eraseDereference" },
10099 {" CTR54" , " comparePointers" },
101100 {" CTR55" , " containerOutOfBounds" },
102- {" DCL57" , " deallocThrow ,exceptThrowInDestructor" },
101+ {" DCL57" , " exceptDeallocThrow ,exceptThrowInDestructor" },
103102 {" DCL60" , " ctuOneDefinitionRuleViolation" },
104103 {" ERR57" , " memleak" },
105104 {" EXP52" , " sizeofCalculation" },
106105 {" EXP53" , " uninitvar,uninitdata,uninitStructMember" },
107106 {" EXP54" , " uninitvar,danglingLifetime,danglingReference,danglingTemporaryLifetime,danglingTempReference,returnDanglingLifetime" },
108- {" EXP61" , " danglingLifetime,danglingReference,danglingTemporaryLifetime,danglingTempReference,returnDanglingLifetime" },
107+ {" EXP61" , " danglingLifetime,danglingReference,danglingTemporaryLifetime,danglingTempReference,returnDanglingLifetime,deallocuse,deallocret " },
109108 {" EXP63" , " accessMoved" },
110109 {" FIO50" , " IOWithoutPositioning" },
111110 {" MEM50" , " deallocuse" },
@@ -124,7 +123,7 @@ std::vector<checkers::IdMapping> checkers::idMappingMisraC{
124123 {" 1.1" , " syntaxError" },
125124 {" 1.3" , " error" },
126125 {" 2.1" , " duplicateBreak,unreachableCode" },
127- {" 2.2" , " constStatement,redundantCondition,redundantAssignment,redundantAssignInSwitch,unreadVariable" },
126+ {" 2.2" , " constStatement,redundantCondition,redundantAssignment,redundantAssignInSwitch,unreadVariable,unusedFunction " },
128127 {" 2.6" , " unusedLabel" },
129128 {" 2.8" , " unusedVariable" },
130129 {" 5.3" , " shadowVariable" },
@@ -168,7 +167,7 @@ std::vector<checkers::IdMapping> checkers::idMappingMisraCpp2008{
168167 {" 5-0-16" , " pointerOutOfBounds" },
169168 {" 5-0-17" , " comparePointers" },
170169 {" 5-0-18" , " comparePointers" },
171- {" 5-2-4" , " cstyleCast" },
170+ {" 5-2-4" , " cstyleCast,dangerousTypeCast " },
172171 {" 5-3-4" , " sizeofFunctionCall" },
173172 {" 5-8-1" , " shiftTooManyBits" },
174173 {" 6-6-5" , " missingReturn" },
0 commit comments