mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
C++: Simplify 'getSourceVariable'.
This commit is contained in:
@@ -61,10 +61,7 @@ abstract private class DefOrUseImpl extends TDefOrUseImpl {
|
|||||||
|
|
||||||
/** Gets the variable that is defined or used. */
|
/** Gets the variable that is defined or used. */
|
||||||
final SourceVariable getSourceVariable() {
|
final SourceVariable getSourceVariable() {
|
||||||
exists(BaseSourceVariable v |
|
result.getBaseVariable() = this.getBaseSourceVariable()
|
||||||
result.getBaseVariable() = v and
|
|
||||||
this.getBaseSourceVariable() = v
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user