Skip to content

Commit db2a462

Browse files
MathiasVPCopilot
andauthored
Apply batched suggestions from code review
C++: Accept Copilot suggestion Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 4f2fc96 commit db2a462

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ class CallInstruction extends Instruction {
17501750
/**
17511751
* Gets the number of positional arguments of the call.
17521752
*/
1753-
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgument()) }
1753+
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgumentOperand()) }
17541754

17551755
/**
17561756
* Holds if the result is a side effect for the argument at the specified index, or `this` if

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ class CallInstruction extends Instruction {
17501750
/**
17511751
* Gets the number of positional arguments of the call.
17521752
*/
1753-
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgument()) }
1753+
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgumentOperand()) }
17541754

17551755
/**
17561756
* Holds if the result is a side effect for the argument at the specified index, or `this` if

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ class CallInstruction extends Instruction {
17501750
/**
17511751
* Gets the number of positional arguments of the call.
17521752
*/
1753-
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgument()) }
1753+
final int getNumberOfPositionalArguments() { result = count(this.getAPositionalArgumentOperand()) }
17541754

17551755
/**
17561756
* Holds if the result is a side effect for the argument at the specified index, or `this` if

0 commit comments

Comments
 (0)