Skip to content

Commit 901fac4

Browse files
committed
C++: Support 'Element' content in flow summaries.
1 parent 013ee9c commit 901fac4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ module Input implements InputSig<Location, DataFlowImplSpecific::CppDataFlow> {
3535
result = "Field" and
3636
arg = repeatStars(c.getIndirectionIndex() - 1) + c.getField().getName()
3737
)
38+
or
39+
exists(ElementContent ec |
40+
cs.isSingleton(ec) and
41+
result = "Element" and
42+
arg = repeatStars(ec.getIndirectionIndex() - 1)
43+
)
3844
}
3945

4046
string encodeWithoutContent(ContentSet c, string arg) {

0 commit comments

Comments
 (0)