Skip to content

Commit 24b679d

Browse files
committed
CPP: Fix IR formatting.
1 parent 8b1b161 commit 24b679d

File tree

6 files changed

+23
-22
lines changed

6 files changed

+23
-22
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
590589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592-
VirtualDeleteFunctionAddressInstruction() { this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress }
590+
VirtualDeleteFunctionAddressInstruction() {
591+
this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress
592+
}
593593
}
594594

595595
/**

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/Instruction.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
590589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592-
VirtualDeleteFunctionAddressInstruction() { this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress }
590+
VirtualDeleteFunctionAddressInstruction() {
591+
this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress
592+
}
593593
}
594594

595595
/**

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
590589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592-
VirtualDeleteFunctionAddressInstruction() { this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress }
590+
VirtualDeleteFunctionAddressInstruction() {
591+
this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress
592+
}
593593
}
594594

595595
/**

csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
590589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592-
VirtualDeleteFunctionAddressInstruction() { this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress }
590+
VirtualDeleteFunctionAddressInstruction() {
591+
this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress
592+
}
593593
}
594594

595595
/**

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
590589
class VirtualDeleteFunctionAddressInstruction extends Instruction {
591-
592-
VirtualDeleteFunctionAddressInstruction() { this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress }
590+
VirtualDeleteFunctionAddressInstruction() {
591+
this.getOpcode() instanceof Opcode::VirtualDeleteFunctionAddress
592+
}
593593
}
594594

595595
/**

0 commit comments

Comments
 (0)