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

Predicate getSecondLevelScope

Gets the second-level scope containing the node n, if any.

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate
DataFlowSecondLevelScope getSecondLevelScope(Node n)