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

Module Enclosing

Provides predicates for finding the smallest element that encloses an expression or statement.

Import path

import semmle.code.cpp.Enclosing

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

exprEnclosingElement

Gets the enclosing element of expression e.

stmtEnclosingElement

Gets the enclosing element of statement s.