mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
CPP: Integrate and produce full results.
This commit is contained in:
@@ -117,6 +117,11 @@ class Variable extends Declaration, @variable {
|
||||
or
|
||||
exists (AssignExpr ae
|
||||
| ae.getLValue().(Access).getTarget() = this and result = ae.getRValue())
|
||||
or
|
||||
exists(AggregateLiteral l |
|
||||
this.getDeclaringType() = l.getType() and
|
||||
result = l.getChild(this.(Field).getInitializationOrder())
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,14 +168,6 @@ class Variable extends Declaration, @variable {
|
||||
predicate isCompilerGenerated() { compgenerated(underlyingElement(this)) }
|
||||
}
|
||||
|
||||
class ExtendedField extends Field {
|
||||
override Expr getAnAssignedValue() {
|
||||
exists(AggregateLiteral l |
|
||||
this.getDeclaringType() = l.getType() and result = l.getChild(this.getInitializationOrder())
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A particular declaration or definition of a C/C++ variable.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user