Skip to content

Commit 7e299e7

Browse files
committed
C++/C#: Document ReturnIndirectionInstruction::getParameter
1 parent b37c13d commit 7e299e7

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ class ReturnIndirectionInstruction extends VariableInstruction {
536536

537537
final Instruction getSourceAddress() { result = getSourceAddressOperand().getDef() }
538538

539+
/**
540+
* Gets the parameter for which this instruction reads the final pointed-to value within the
541+
* function.
542+
*/
539543
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
540544
}
541545

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ class ReturnIndirectionInstruction extends VariableInstruction {
536536

537537
final Instruction getSourceAddress() { result = getSourceAddressOperand().getDef() }
538538

539+
/**
540+
* Gets the parameter for which this instruction reads the final pointed-to value within the
541+
* function.
542+
*/
539543
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
540544
}
541545

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ class ReturnIndirectionInstruction extends VariableInstruction {
536536

537537
final Instruction getSourceAddress() { result = getSourceAddressOperand().getDef() }
538538

539+
/**
540+
* Gets the parameter for which this instruction reads the final pointed-to value within the
541+
* function.
542+
*/
539543
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
540544
}
541545

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/Instruction.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ class ReturnIndirectionInstruction extends VariableInstruction {
536536

537537
final Instruction getSourceAddress() { result = getSourceAddressOperand().getDef() }
538538

539+
/**
540+
* Gets the parameter for which this instruction reads the final pointed-to value within the
541+
* function.
542+
*/
539543
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
540544
}
541545

csharp/ql/src/semmle/code/csharp/ir/implementation/unaliased_ssa/Instruction.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ class ReturnIndirectionInstruction extends VariableInstruction {
536536

537537
final Instruction getSourceAddress() { result = getSourceAddressOperand().getDef() }
538538

539+
/**
540+
* Gets the parameter for which this instruction reads the final pointed-to value within the
541+
* function.
542+
*/
539543
final Language::Parameter getParameter() { result = var.(IRUserVariable).getVariable() }
540544
}
541545

0 commit comments

Comments
 (0)