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 {
576576 FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577577}
578578
579-
580579/**
581580 * An instruction that returns the address of a "virtual" delete function.
582- *
581+ *
583582 * This function, which does not actually exist in the source code, is used to
584583 * delete objects of a class with a virtual destructor. In that case the deacllocation
585584 * function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588587 * which may differ dynamically depending on the type of the object.
589588 */
590589class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590+ VirtualDeleteFunctionAddressInstruction ( ) {
591+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592+ }
593593}
594594
595595/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576576 FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577577}
578578
579-
580579/**
581580 * An instruction that returns the address of a "virtual" delete function.
582- *
581+ *
583582 * This function, which does not actually exist in the source code, is used to
584583 * delete objects of a class with a virtual destructor. In that case the deacllocation
585584 * function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588587 * which may differ dynamically depending on the type of the object.
589588 */
590589class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590+ VirtualDeleteFunctionAddressInstruction ( ) {
591+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592+ }
593593}
594594
595595/**
Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ private predicate ignoreExprAndDescendants(Expr expr) {
7575 // REVIEW: Ignore initializers for `NewArrayExpr` until we determine how to
7676 // represent them.
7777 newExpr .getInitializer ( ) .getFullyConverted ( ) = expr
78- ) or
78+ )
79+ or
7980 exists ( DeleteOrDeleteArrayExpr deleteExpr |
8081 // Ignore the deallocator call, because we always synthesize it.
8182 deleteExpr .getDeallocatorCall ( ) = expr
82- )
83+ )
8384 or
8485 // Do not translate input/output variables in GNU asm statements
8586 // getRealParent(expr) instanceof AsmStmt
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576576 FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577577}
578578
579-
580579/**
581580 * An instruction that returns the address of a "virtual" delete function.
582- *
581+ *
583582 * This function, which does not actually exist in the source code, is used to
584583 * delete objects of a class with a virtual destructor. In that case the deacllocation
585584 * function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588587 * which may differ dynamically depending on the type of the object.
589588 */
590589class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590+ VirtualDeleteFunctionAddressInstruction ( ) {
591+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592+ }
593593}
594594
595595/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576576 FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577577}
578578
579-
580579/**
581580 * An instruction that returns the address of a "virtual" delete function.
582- *
581+ *
583582 * This function, which does not actually exist in the source code, is used to
584583 * delete objects of a class with a virtual destructor. In that case the deacllocation
585584 * function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588587 * which may differ dynamically depending on the type of the object.
589588 */
590589class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590+ VirtualDeleteFunctionAddressInstruction ( ) {
591+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592+ }
593593}
594594
595595/**
Original file line number Diff line number Diff line change @@ -576,10 +576,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
576576 FunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: FunctionAddress }
577577}
578578
579-
580579/**
581580 * An instruction that returns the address of a "virtual" delete function.
582- *
581+ *
583582 * This function, which does not actually exist in the source code, is used to
584583 * delete objects of a class with a virtual destructor. In that case the deacllocation
585584 * function is selected at runtime based on the dynamic type of the object. So this
@@ -588,8 +587,9 @@ class FunctionAddressInstruction extends FunctionInstruction {
588587 * which may differ dynamically depending on the type of the object.
589588 */
590589class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592- VirtualDeleteFunctionAddressInstruction ( ) { this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress }
590+ VirtualDeleteFunctionAddressInstruction ( ) {
591+ this .getOpcode ( ) instanceof Opcode:: VirtualDeleteFunctionAddress
592+ }
593593}
594594
595595/**
You can’t perform that action at this time.
0 commit comments