We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd2a38 commit 7310590Copy full SHA for 7310590
cpp/ql/lib/semmle/code/cpp/exprs/Access.qll
@@ -350,6 +350,15 @@ class PointerToFieldLiteral extends ImplicitThisFieldAccess {
350
* int (*myFunctionPointer)(int) = &myFunctionTarget;
351
* }
352
* ```
353
+ * This excludes function accesses in function call expressions.
354
+ * For example the access `myFunctionTarget` in `myFunction` in the following code:
355
+ * ```
356
+ * int myFunctionTarget(int);
357
+ *
358
+ * void myFunction() {
359
+ * myFunctionTarget(1);
360
+ * }
361
362
*/
363
class FunctionAccess extends Access, @routineexpr {
364
FunctionAccess() { not iscall(underlyingElement(this), _) }
0 commit comments