CPP: Pavel's sketch implementation.

This commit is contained in:
Geoffrey White
2019-06-10 15:21:26 +01:00
parent 2f36d81137
commit e143870b65
3 changed files with 21 additions and 7 deletions

View File

@@ -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.
*/