Skip to content

Commit be1af88

Browse files
committed
C++: Add more QLDoc.
1 parent aff03bd commit be1af88

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,16 @@ abstract class DefImpl extends TDefImpl {
225225
)
226226
}
227227

228+
/**
229+
* Holds if this definition is guaranteed to totally overwrite the
230+
* destination buffer.
231+
*/
228232
abstract predicate isCertain();
229233

234+
/** Gets the value written to the destination variable by this definition. */
230235
abstract Node0Impl getValue();
231236

237+
/** Gets the operand that represents the address of this definition, if any. */
232238
Operand getAddressOperand() { none() }
233239
}
234240

@@ -1078,6 +1084,10 @@ class GlobalDef extends DefinitionExt {
10781084

10791085
GlobalDef() { impl = this.getImpl() }
10801086

1087+
/**
1088+
* Gets the global (or `static` local) variable written to by this SSA
1089+
* definition.
1090+
*/
10811091
GlobalLikeVariable getVariable() { result = impl.getVariable() }
10821092
}
10831093

0 commit comments

Comments
 (0)