CodeQL library for C/C++
codeql/cpp-all 12.2.0 (changelog, source)
Search

Class Position

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate

Direct supertypes

Known direct subtypes

    Predicates

    getArgument

    Gets the argument (or qualifier) of call associated with this position, if any.

    getArgumentIndex

    Gets the argument index of this position. The qualifier of a call has argument index -1.

    getIndirectionIndex

    Gets the indirection index of this position.

    getParameter

    Gets the parameter of f associated with this position, if any.

    isForward

    Holds if this position is the synthetic argument for an address of a constructor used for functions which perform “perfect forwarding”.

    toString

    Gets a textual representation of this position.