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

Predicate exprEnclosingElement

Gets the enclosing element of expression e.

Import path

import semmle.code.cpp.Enclosing
Element exprEnclosingElement(Expr e)