Skip to content

Commit ffef81b

Browse files
committed
C++: Add QLDoc.
1 parent 0a3f958 commit ffef81b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,10 +1678,13 @@ class UnionContent extends Content, TUnionContent {
16781678
indirectionIndex > 1 and result = u.toString() + " indirection"
16791679
}
16801680

1681+
/** Gets a field of the underlying union of this `UnionContent`, if any. */
16811682
Field getAField() { result = u.getAField() }
16821683

1684+
/** Gets the underlying union of this `UnionContent`. */
16831685
Union getUnion() { result = u }
16841686

1687+
/** Gets the indirection index of this `UnionContent`. */
16851688
pragma[inline]
16861689
int getIndirectionIndex() {
16871690
pragma[only_bind_into](result) = pragma[only_bind_out](indirectionIndex)

0 commit comments

Comments
 (0)