We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0671586 commit 5fb79cdCopy full SHA for 5fb79cd
cpp/ql/src/semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll
@@ -168,6 +168,7 @@ class SubBasicBlock extends ControlFlowNodeBase {
168
/** Gets the first control-flow node in this `SubBasicBlock`. */
169
ControlFlowNode getStart() { result = this }
170
171
+ /** Gets the function that contains this `SubBasicBlock`. */
172
pragma[noinline]
173
Function getEnclosingFunction() { result = this.getStart().getControlFlowScope() }
174
}
0 commit comments