Skip to content

Commit c3ae6e8

Browse files
committed
Change referenced class by NonStandardNewOrNewArrayOperator and such
1 parent dfbd0ea commit c3ae6e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/misra/src/rules/RULE-21-6-3/AdvancedMemoryManagementUsed.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AdvancedMemoryManagementFunction extends Function {
3838
class NonStandardNewOrNewArrayOperator extends OperatorNewOrDelete {
3939
NonStandardNewOrNewArrayOperator() {
4040
this.getName() in ["operator new", "operator new[]"] and
41-
not this instanceof CustomReplaceableOperatorNew // `CustomReplaceableOperatorNew` only detects replaceable allocation functions.
41+
not this instanceof ReplaceableOperatorNew // `CustomReplaceableOperatorNew` only detects replaceable allocation functions.
4242
}
4343
}
4444

@@ -61,7 +61,7 @@ class UserDeclaredOperatorNewOrDelete extends FunctionDeclarationEntry {
6161
class NonStandardDeleteOrDeleteArrayOperator extends OperatorNewOrDelete {
6262
NonStandardDeleteOrDeleteArrayOperator() {
6363
this.getName() in ["operator delete", "operator delete[]"] and
64-
not this instanceof CustomReplaceableOperatorDelete // `CustomReplaceableOperatorDelete` only detects replaceable deallocation functions.
64+
not this instanceof ReplaceableOperatorDelete // `CustomReplaceableOperatorDelete` only detects replaceable deallocation functions.
6565
}
6666
}
6767

0 commit comments

Comments
 (0)