C++: Support 'Element' content in flow summaries.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-06-19 13:40:06 +01:00
parent 013ee9c15e
commit 901fac4282

View File

@@ -35,6 +35,12 @@ module Input implements InputSig<Location, DataFlowImplSpecific::CppDataFlow> {
result = "Field" and
arg = repeatStars(c.getIndirectionIndex() - 1) + c.getField().getName()
)
or
exists(ElementContent ec |
cs.isSingleton(ec) and
result = "Element" and
arg = repeatStars(ec.getIndirectionIndex() - 1)
)
}
string encodeWithoutContent(ContentSet c, string arg) {