# Class Call

A C/C++ call.

This is the abstract root QL class for all types of calls.

## Import path

`import cpp`

## Direct supertypes

## Indirect supertypes

## Known direct subtypes

## Predicates

getAnArgument | Gets an argument for this call. |

getAnArgumentSubExpr | Gets a sub expression of the argument at position |

getArgument | Gets the nth argument for this call. |

getNumberOfArguments | Gets the number of actual parameters in this call; use |

getPrecedence | Gets the precedence of the main operator of this expression; higher precedence binds tighter. |

getQualifier | Gets the expression to the left of the function name or function pointer variable name. |

getTarget | Gets the target of the call, as best as makes sense for this kind of call. The precise meaning depends on the kind of call it is: - For a call to a function, it’s the function being called. - For a C++ method call, it’s the statically resolved method. - For an Objective C message expression, it’s the statically resolved method, and it might not exist. - For a variable call, it never exists. |

hasQualifier | Holds if this call has a qualifier. |

passesByReference | Holds if this call passes the variable accessed by |

passesByReferenceNonConst | Holds if this call passes the variable accessed by |

toString | Gets a textual representation of this expression. |

## Inherited predicates

findRootCause | Gets the source of this element: either itself or a macro that expanded to this element. | from Element |

fromLibrary | Holds if this element may be from a library. | from Element |

fromSource | Holds if this element may be from source. | from Element |

getAChild | Gets a child of this expression. | from Expr |

getAFalseSuccessor | Gets a node such that the control-flow edge | from ControlFlowNode |

getAPredecessor | from ControlFlowNode | |

getASuccessor | from ControlFlowNode | |

getATrueSuccessor | Gets a node such that the control-flow edge | from ControlFlowNode |

getActualType | Gets the type of this expression, after any implicit conversions and explicit casts, and after resolving typedefs. | from Expr |

getBasicBlock | from ControlFlowNode | |

getCanonicalQLClass | Canonical QL class corresponding to this element. | from ElementBase |

getChild | Gets the nth child of this expression. | from Expr |

getControlFlowScope | Gets the function containing this control-flow node. | from Expr |

getConversion | Gets the conversion associated with this expression, if any. | from Expr |

getConversionString | Gets a string describing the conversion associated with this expression, or "" if there is none. | from Expr |

getEnclosingBlock | Gets the nearest enclosing set of curly braces around this expression in the source, if any. | from Expr |

getEnclosingElement | Gets the closest | from Element |

getEnclosingFunction | Gets the enclosing function of this expression, if any. | from Expr |

getEnclosingStmt | Gets the smallest statement containing this control-flow node. | from Expr |

getEnclosingVariable | Gets the enclosing variable of this expression, if any. | from Expr |

getExplicitlyConverted | Gets this expression with all of its explicit casts, but none of its implicit casts. More precisely this takes conversions up to the last explicit cast (there may be implicit conversions along the way), but does not include conversions after the last explicit cast. | from Expr |

getFile | Gets the primary file where this element occurs. | from Element |

getFullyConverted | Gets the fully converted form of this expression, including all type casts and other conversions. | from Expr |

getImplicitlyConverted | Gets this expression with all of its initial implicit casts, but none of its explicit casts. More precisely, this takes all implicit conversions up to (but not including) the first explicit cast (if any). | from Expr |

getKind | Gets an integer indicating the type of expression that this represents. | from Expr |

getLocation | Gets the location of this expression. | from Expr |

getNameQualifier | Gets the name qualifier associated with this element. For example, the name qualifier of | from NameQualifiableElement |

getNumChild | Gets the number of direct children of this expression. | from Expr |

getParent | Gets the parent of this expression, if any. | from Expr |

getParentScope | Gets the parent scope of this | from Element |

getParentWithConversions | Gets the parent of this expression, if any, in an alternative syntax tree that has | from Expr |

getType | Gets the type of this expression. | from Expr |

getUnderlyingType | Gets the type of this expression after typedefs have been resolved. | from Expr |

getUnspecifiedType | Gets the type of this expression after specifiers have been deeply stripped and typedefs have been resolved. | from Expr |

getValue | Gets the value of this expression, if it is a constant. | from Expr |

getValueCategoryString | Gets a string representation of the value category of the expression. This is intended only for debugging. The possible values are: | from Expr |

getValueText | Gets the source text for the value of this expression, if it is a constant. | from Expr |

hasChild | Holds if e is the nth child of this expression. | from Expr |

hasConversion | Holds if this expression has a conversion. | from Expr |

hasExplicitConversion | Holds if this expression has an explicit conversion. | from Expr |

hasGlobalQualifiedName | Holds if this element has a globally qualified name. For example, | from NameQualifiableElement |

hasImplicitConversion | Holds if this expression has an implicit conversion. | from Expr |

hasLValueToRValueConversion | Holds if this expression has undergone an | from Expr |

hasSuperQualifiedName | Holds if this element has a | from NameQualifiableElement |

isAffectedByMacro | Holds if this element is affected in any way by a macro. All elements that are totally or partially generated by a macro are included, so this is a super-set of | from Element |

isCompilerGenerated | Holds if this is an auxiliary expression generated by the compiler. | from Expr |

isCondition | Holds if this node is the top-level expression of a conditional statement, meaning that | from ControlFlowNode |

isConstant | Holds if this expression has a value that can be determined at compile time. | from Expr |

isFromTemplateInstantiation | Holds if this | from Element |

isFromUninstantiatedTemplate | Holds if this | from Element |

isGLValueCategory | Holds if this expression is a | from Expr |

isInMacroExpansion | Holds if this element comes from a macro expansion. Only elements that are entirely generated by a macro are included - for elements that partially come from a macro, see | from Element |

isLValue | Holds if this expression is an | from Expr |

isLValueCategory | Holds if this expression is an | from Expr |

isPRValueCategory | Holds if this expression is a | from Expr |

isParenthesised | Holds if this expression is parenthesised. | from Expr |

isPure | Holds if this expression is side-effect free (conservative approximation). This predicate cannot be overridden; override mayBeImpure() instead. | from Expr |

isRValueCategory | Holds if this expression is an | from Expr |

isUnevaluated | Holds if this expression will not be evaluated because of its context, such as an expression inside a sizeof. | from Expr |

isXValueCategory | Holds if this expression is an | from Expr |

mayBeGloballyImpure | Holds if it is possible that the expression may be impure. If we are not sure, then it holds. Unlike | from Expr |

mayBeImpure | Holds if it is possible that the expression may be impure. If we are not sure, then it holds. | from Expr |