Skip to content

Commit 3e1bc66

Browse files
authored
Merge pull request #6733 from MathiasVP/fix-qldoc-in-initialize-dynamic-allocation-instruction
C++/C#: Fix QLDoc on `InitializeDynamicAllocationInstruction`.{`getAllocationAddressOperand` and `getAllocationAddress`}
2 parents 66c206c + 2421400 commit 3e1bc66

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,12 @@ class InitializeDynamicAllocationInstruction extends SideEffectInstruction {
18561856
}
18571857

18581858
/**
1859-
* Gets the address of the allocation this instruction is initializing.
1859+
* Gets the operand that represents the address of the allocation this instruction is initializing.
18601860
*/
18611861
final AddressOperand getAllocationAddressOperand() { result = getAnOperand() }
18621862

18631863
/**
1864-
* Gets the operand for the allocation this instruction is initializing.
1864+
* Gets the address for the allocation this instruction is initializing.
18651865
*/
18661866
final Instruction getAllocationAddress() { result = getAllocationAddressOperand().getDef() }
18671867
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,12 @@ class InitializeDynamicAllocationInstruction extends SideEffectInstruction {
18561856
}
18571857

18581858
/**
1859-
* Gets the address of the allocation this instruction is initializing.
1859+
* Gets the operand that represents the address of the allocation this instruction is initializing.
18601860
*/
18611861
final AddressOperand getAllocationAddressOperand() { result = getAnOperand() }
18621862

18631863
/**
1864-
* Gets the operand for the allocation this instruction is initializing.
1864+
* Gets the address for the allocation this instruction is initializing.
18651865
*/
18661866
final Instruction getAllocationAddress() { result = getAllocationAddressOperand().getDef() }
18671867
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,12 @@ class InitializeDynamicAllocationInstruction extends SideEffectInstruction {
18561856
}
18571857

18581858
/**
1859-
* Gets the address of the allocation this instruction is initializing.
1859+
* Gets the operand that represents the address of the allocation this instruction is initializing.
18601860
*/
18611861
final AddressOperand getAllocationAddressOperand() { result = getAnOperand() }
18621862

18631863
/**
1864-
* Gets the operand for the allocation this instruction is initializing.
1864+
* Gets the address for the allocation this instruction is initializing.
18651865
*/
18661866
final Instruction getAllocationAddress() { result = getAllocationAddressOperand().getDef() }
18671867
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,12 @@ class InitializeDynamicAllocationInstruction extends SideEffectInstruction {
18561856
}
18571857

18581858
/**
1859-
* Gets the address of the allocation this instruction is initializing.
1859+
* Gets the operand that represents the address of the allocation this instruction is initializing.
18601860
*/
18611861
final AddressOperand getAllocationAddressOperand() { result = getAnOperand() }
18621862

18631863
/**
1864-
* Gets the operand for the allocation this instruction is initializing.
1864+
* Gets the address for the allocation this instruction is initializing.
18651865
*/
18661866
final Instruction getAllocationAddress() { result = getAllocationAddressOperand().getDef() }
18671867
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,12 +1856,12 @@ class InitializeDynamicAllocationInstruction extends SideEffectInstruction {
18561856
}
18571857

18581858
/**
1859-
* Gets the address of the allocation this instruction is initializing.
1859+
* Gets the operand that represents the address of the allocation this instruction is initializing.
18601860
*/
18611861
final AddressOperand getAllocationAddressOperand() { result = getAnOperand() }
18621862

18631863
/**
1864-
* Gets the operand for the allocation this instruction is initializing.
1864+
* Gets the address for the allocation this instruction is initializing.
18651865
*/
18661866
final Instruction getAllocationAddress() { result = getAllocationAddressOperand().getDef() }
18671867
}

0 commit comments

Comments
 (0)