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. */
|
||||
final SourceVariable getSourceVariable() {
|
||||
exists(BaseSourceVariable v |
|
||||
result.getBaseVariable() = v and
|
||||
this.getBaseSourceVariable() = v
|
||||
)
|
||||
result.getBaseVariable() = this.getBaseSourceVariable()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user