Class BasicBlock
A basic block in the C/C++ control-flow graph.
A basic block is a simple sequence of control-flow nodes, connected to each other and nothing else:
A - B - C - D ABCD is a basic block
Any incoming or outgoing edges break the block into two:
A - B > C - D AB is a basic block and CD is a basic block (C has two incoming edges)
A - B < C - D AB is a basic block and CD is a basic block (B has two outgoing edges)
Import path
import cpp
Direct supertypes
Indirect supertypes
Known direct subtypes
Predicates
contains | Holds if this basic block contains |
getAFalseSuccessor | Gets a |
getANode | Gets a |
getAPredecessor | Gets a |
getASuccessor | Gets a |
getATrueSuccessor | Gets a |
getEnclosingFunction | Gets the function containing this basic block. |
getEnd | Gets the final |
getNode | Gets the |
getStart | Gets the first |
hasLocationInfo | Holds if this element is at the specified location. The location spans column |
inLoop | Holds if this basic block is in a loop of the control-flow graph. This includes loops created by |
isReachable | Holds if control flow may reach this basic block from a function entry point or any handler of a reachable |
isUnreachable | Means |
length | Gets the number of |
Inherited predicates
getAPrimaryQlClass | Gets the name of a primary CodeQL class to which this element belongs. | from ElementBase |
getPrimaryQlClasses | Gets a comma-separated list of the names of the primary CodeQL classes to which this element belongs. | from ElementBase |
toString | Gets a textual representation of this element. | from ElementBase |