mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Use underlyingElement in isStructuredBinding
Accodring to the documentation in `Element.qll`, `underlyingElement` is supposed to be used here and not `unresolveElement`.
This commit is contained in:
@@ -173,7 +173,7 @@ class Variable extends Declaration, @variable {
|
||||
* Holds if this variable is declated as part of a structured binding
|
||||
* declaration. For example, `x` in `auto [x, y] = ...`.
|
||||
*/
|
||||
predicate isStructuredBinding() { is_structured_binding(unresolveElement(this)) }
|
||||
predicate isStructuredBinding() { is_structured_binding(underlyingElement(this)) }
|
||||
|
||||
/**
|
||||
* Holds if this is a compiler-generated variable. For example, a
|
||||
|
||||
Reference in New Issue
Block a user