File tree Expand file tree Collapse file tree 6 files changed +23
-22
lines changed
cpp/ql/lib/semmle/code/cpp/ir/implementation
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 6 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576
576
FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577
577
}
578
578
579
-
580
579
/**
581
580
* An instruction that returns the address of a "virtual" delete function.
582
- *
581
+ *
583
582
* This function, which does not actually exist in the source code, is used to
584
583
* delete objects of a class with a virtual destructor. In that case the deacllocation
585
584
* function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588
587
* which may differ dynamically depending on the type of the object.
589
588
*/
590
589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591
-
592
- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590
+ VirtualDeleteFunctionAddressInstruction ( ) {
591
+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592
+ }
593
593
}
594
594
595
595
/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576
576
FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577
577
}
578
578
579
-
580
579
/**
581
580
* An instruction that returns the address of a "virtual" delete function.
582
- *
581
+ *
583
582
* This function, which does not actually exist in the source code, is used to
584
583
* delete objects of a class with a virtual destructor. In that case the deacllocation
585
584
* function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588
587
* which may differ dynamically depending on the type of the object.
589
588
*/
590
589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591
-
592
- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590
+ VirtualDeleteFunctionAddressInstruction ( ) {
591
+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592
+ }
593
593
}
594
594
595
595
/**
Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ private predicate ignoreExprAndDescendants(Expr expr) {
75
75
// REVIEW: Ignore initializers for `NewArrayExpr` until we determine how to
76
76
// represent them.
77
77
newExpr .getInitializer ( ) .getFullyConverted ( ) = expr
78
- ) or
78
+ )
79
+ or
79
80
exists ( DeleteOrDeleteArrayExpr deleteExpr |
80
81
// Ignore the deallocator call, because we always synthesize it.
81
82
deleteExpr .getDeallocatorCall ( ) = expr
82
- )
83
+ )
83
84
or
84
85
// Do not translate input/output variables in GNU asm statements
85
86
// getRealParent(expr) instanceof AsmStmt
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576
576
FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577
577
}
578
578
579
-
580
579
/**
581
580
* An instruction that returns the address of a "virtual" delete function.
582
- *
581
+ *
583
582
* This function, which does not actually exist in the source code, is used to
584
583
* delete objects of a class with a virtual destructor. In that case the deacllocation
585
584
* function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588
587
* which may differ dynamically depending on the type of the object.
589
588
*/
590
589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591
-
592
- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590
+ VirtualDeleteFunctionAddressInstruction ( ) {
591
+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592
+ }
593
593
}
594
594
595
595
/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576
576
FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577
577
}
578
578
579
-
580
579
/**
581
580
* An instruction that returns the address of a "virtual" delete function.
582
- *
581
+ *
583
582
* This function, which does not actually exist in the source code, is used to
584
583
* delete objects of a class with a virtual destructor. In that case the deacllocation
585
584
* function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588
587
* which may differ dynamically depending on the type of the object.
589
588
*/
590
589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591
-
592
- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590
+ VirtualDeleteFunctionAddressInstruction ( ) {
591
+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592
+ }
593
593
}
594
594
595
595
/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576
576
FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577
577
}
578
578
579
-
580
579
/**
581
580
* An instruction that returns the address of a "virtual" delete function.
582
- *
581
+ *
583
582
* This function, which does not actually exist in the source code, is used to
584
583
* delete objects of a class with a virtual destructor. In that case the deacllocation
585
584
* function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588
587
* which may differ dynamically depending on the type of the object.
589
588
*/
590
589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591
-
592
- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590
+ VirtualDeleteFunctionAddressInstruction ( ) {
591
+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592
+ }
593
593
}
594
594
595
595
/**
You can’t perform that action at this time.
0 commit comments