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

Member predicate Node::asExpr

Gets the non-conversion expression corresponding to this node, if any. This predicate only has a result on nodes that represent the value of evaluating the expression. For data flowing out of an expression, like when an argument is passed by reference, use asDefiningArgument instead of asExpr.

If this node strictly (in the sense of asConvertedExpr) corresponds to a Conversion, then the result is the underlying non-Conversion base expression.

Expr asExpr()