mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
CPP: Pavel's sketch implementation.
This commit is contained in:
@@ -163,6 +163,14 @@ 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