Skip to content

Commit e0362b7

Browse files
committed
Add Memory3
1 parent df95b6c commit e0362b7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cpp/common/src/codingstandards/cpp/exclusions/cpp/RuleMetadata.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import Literals
4141
import Loops
4242
import Macros
4343
import Memory2
44+
import Memory3
4445
import MoveForward
4546
import Naming
4647
import Null
@@ -107,6 +108,7 @@ newtype TCPPQuery =
107108
TLoopsPackageQuery(LoopsQuery q) or
108109
TMacrosPackageQuery(MacrosQuery q) or
109110
TMemory2PackageQuery(Memory2Query q) or
111+
TMemory3PackageQuery(Memory3Query q) or
110112
TMoveForwardPackageQuery(MoveForwardQuery q) or
111113
TNamingPackageQuery(NamingQuery q) or
112114
TNullPackageQuery(NullQuery q) or
@@ -173,6 +175,7 @@ predicate isQueryMetadata(Query query, string queryId, string ruleId, string cat
173175
isLoopsQueryMetadata(query, queryId, ruleId, category) or
174176
isMacrosQueryMetadata(query, queryId, ruleId, category) or
175177
isMemory2QueryMetadata(query, queryId, ruleId, category) or
178+
isMemory3QueryMetadata(query, queryId, ruleId, category) or
176179
isMoveForwardQueryMetadata(query, queryId, ruleId, category) or
177180
isNamingQueryMetadata(query, queryId, ruleId, category) or
178181
isNullQueryMetadata(query, queryId, ruleId, category) or

rules.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,9 @@ cpp,MISRA-C++-2023,RULE-8-2-10,Yes,Required,Undecidable,System,"Functions shall
895895
cpp,MISRA-C++-2023,RULE-8-2-11,Yes,Required,Decidable,Single Translation Unit,An argument passed via ellipsis shall have an appropriate type,,Preconditions,Easy,
896896
cpp,MISRA-C++-2023,RULE-8-3-1,Yes,Advisory,Decidable,Single Translation Unit,The built-in unary - operator should not be applied to an expression of unsigned type,M5-3-2,ImportMisra23,Import,
897897
cpp,MISRA-C++-2023,RULE-8-3-2,Yes,Advisory,Decidable,Single Translation Unit,The built-in unary + operator should not be used,,Banned,Easy,
898-
cpp,MISRA-C++-2023,RULE-8-7-1,Yes,Required,Undecidable,System,Pointer arithmetic shall not form an invalid pointer,ARR30-C,Memory,Easy,
899-
cpp,MISRA-C++-2023,RULE-8-7-2,Yes,Required,Undecidable,System,Subtraction between pointers shall only be applied to pointers that address elements of the same array,ARR36-C,Memory,Easy,
900-
cpp,MISRA-C++-2023,RULE-8-9-1,Yes,Required,Undecidable,System,"The built-in relational operators >, >=, < and <= shall not be applied to objects of pointer type, except where they point to elements of the same array",ARR36-C,Memory,Easy,
898+
cpp,MISRA-C++-2023,RULE-8-7-1,Yes,Required,Undecidable,System,Pointer arithmetic shall not form an invalid pointer,ARR30-C,Memory1,Easy,
899+
cpp,MISRA-C++-2023,RULE-8-7-2,Yes,Required,Undecidable,System,Subtraction between pointers shall only be applied to pointers that address elements of the same array,ARR36-C,Memory2,Easy,
900+
cpp,MISRA-C++-2023,RULE-8-9-1,Yes,Required,Undecidable,System,"The built-in relational operators >, >=, < and <= shall not be applied to objects of pointer type, except where they point to elements of the same array",ARR36-C,Memory3,Easy,
901901
cpp,MISRA-C++-2023,RULE-8-14-1,Yes,Advisory,Undecidable,System,The right-hand operand of a logical && or operator should not contain persistent side effects,"M5-14-1, RULE-13-5",SideEffects3,Medium,
902902
cpp,MISRA-C++-2023,RULE-8-18-1,Yes,Mandatory,Undecidable,System,An object or subobject must not be copied to an overlapping object,"M0-2-1, RULE-19-1",Memory,Hard,
903903
cpp,MISRA-C++-2023,RULE-8-18-2,Yes,Advisory,Decidable,Single Translation Unit,The result of an assignment operator should not be used,RULE-13-4,ImportMisra23,Import,

0 commit comments

Comments
 (0)