File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
cpp/ql/src/semmle/code/cpp/models/interfaces Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,24 @@ abstract class SideEffectFunction extends Function {
29
29
*/
30
30
abstract predicate hasOnlySpecificWriteSideEffects ( ) ;
31
31
32
+ /**
33
+ * Holds if the value pointed to by the parameter at index `i` is written to. `buffer` is true
34
+ * if the write may be at an offset. `mustWrite` is true if the write is unconditional.
35
+ */
32
36
predicate hasSpecificWriteSideEffect ( ParameterIndex i , boolean buffer , boolean mustWrite ) {
33
37
none ( )
34
38
}
35
39
40
+ /**
41
+ * Holds if the value pointed to by the parameter at index `i` is read from. `buffer` is true
42
+ * if the read may be at an offset.
43
+ */
36
44
predicate hasSpecificReadSideEffect ( ParameterIndex i , boolean buffer ) { none ( ) }
37
45
38
46
// TODO: name?
47
+ /**
48
+ * Gets the index of the parameter that indicates the size of the buffer pointed to by the
49
+ * parameter at index `i`.
50
+ */
39
51
ParameterIndex getParameterSizeIndex ( ParameterIndex i ) { none ( ) }
40
52
}
You can’t perform that action at this time.
0 commit comments