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

Member predicate Function::getEntryPoint

Gets the first node in this function’s control flow graph.

For most functions, this first node will be the BlockStmt returned by getBlock. However in C++, the first node can also be a FunctionTryStmt.

Stmt getEntryPoint()