Skip to content

Commit 9b818a0

Browse files
authored
sync
1 parent 0bb11fa commit 9b818a0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Operand extends TStageOperand {
4646
/**
4747
* Gets the location of the source code for this operand.
4848
* By default this is where the operand is used, but some subclasses may override this
49-
* using `getAnyDef()` if it makes more sense.
49+
* using getAnyDef() if it makes more sense.
5050
*/
5151
Language::Location getLocation() { result = this.getUse().getLocation() }
5252

@@ -271,7 +271,8 @@ class RegisterOperand extends NonPhiOperand, TRegisterOperand {
271271

272272
final override string toString() { result = tag.toString() }
273273

274-
// most `RegisterOperands` have a more meaningful location at the definition. The only exception is `ThisArgumentOperand`.
274+
// most RegisterOperands have a more meaningful location at the definition
275+
// the only exception is ThisArgumentOperand
275276
override Language::Location getLocation() { result = this.getAnyDef().getLocation() }
276277

277278
final override Instruction getAnyDef() { result = defInstr }

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Operand extends TStageOperand {
4646
/**
4747
* Gets the location of the source code for this operand.
4848
* By default this is where the operand is used, but some subclasses may override this
49-
* using `getAnyDef()` if it makes more sense.
49+
* using getAnyDef() if it makes more sense.
5050
*/
5151
Language::Location getLocation() { result = this.getUse().getLocation() }
5252

@@ -271,7 +271,8 @@ class RegisterOperand extends NonPhiOperand, TRegisterOperand {
271271

272272
final override string toString() { result = tag.toString() }
273273

274-
// most `RegisterOperands` have a more meaningful location at the definition. The only exception is `ThisArgumentOperand`.
274+
// most RegisterOperands have a more meaningful location at the definition
275+
// the only exception is ThisArgumentOperand
275276
override Language::Location getLocation() { result = this.getAnyDef().getLocation() }
276277

277278
final override Instruction getAnyDef() { result = defInstr }

0 commit comments

Comments
 (0)