File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -225,10 +225,16 @@ abstract class DefImpl extends TDefImpl {
225
225
)
226
226
}
227
227
228
+ /**
229
+ * Holds if this definition is guaranteed to totally overwrite the
230
+ * destination buffer.
231
+ */
228
232
abstract predicate isCertain ( ) ;
229
233
234
+ /** Gets the value written to the destination variable by this definition. */
230
235
abstract Node0Impl getValue ( ) ;
231
236
237
+ /** Gets the operand that represents the address of this definition, if any. */
232
238
Operand getAddressOperand ( ) { none ( ) }
233
239
}
234
240
@@ -1078,6 +1084,10 @@ class GlobalDef extends DefinitionExt {
1078
1084
1079
1085
GlobalDef ( ) { impl = this .getImpl ( ) }
1080
1086
1087
+ /**
1088
+ * Gets the global (or `static` local) variable written to by this SSA
1089
+ * definition.
1090
+ */
1081
1091
GlobalLikeVariable getVariable ( ) { result = impl .getVariable ( ) }
1082
1092
}
1083
1093
You can’t perform that action at this time.
0 commit comments