Merge branch 'jeongsoolee09/add-getIndirectionIndex' of github.com:github/codeql into jeongsoolee09/add-getIndirectionIndex

This commit is contained in:
Jeongsoo Lee
2026-03-19 15:51:37 -07:00

View File

@@ -619,7 +619,7 @@ module Public {
/**
* Gets the uninitialized local variable corresponding to this node behind
* the given levels of indirection, if any.
* `index` number of indirections, if any.
*/
LocalVariable asIndirectUninitialized(int index) {
exists(IndirectUninitializedNode indirectUninitializedNode |
@@ -632,7 +632,7 @@ module Public {
/**
* Gets the uninitialized local variable corresponding to this node behind
* any levels of indirection, if any.
* a number indirections, if any.
*/
LocalVariable asIndirectUninitialized() { result = this.asIndirectUninitialized(_) }
@@ -812,7 +812,7 @@ module Public {
class IndirectUninitializedNode extends AbstractUninitializedNode {
IndirectUninitializedNode() { indirectionIndex > 0 }
/** Gets the level of indirection to get to this node. */
/** Gets the indirection index of this node. */
int getIndirectionIndex() { result = indirectionIndex }
}