Skip to content

Commit c7e5dc2

Browse files
committed
C++: Fix QLDoc issues
1 parent 458522a commit c7e5dc2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,9 @@ class Content extends TContent {
18331833
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0
18341834
}
18351835

1836+
/** Gets the indirection index of this `Content`. */
1837+
abstract int getIndirectionIndex();
1838+
18361839
/**
18371840
* INTERNAL: Do not use.
18381841
*
@@ -1843,15 +1846,6 @@ class Content extends TContent {
18431846
* the form `*f` is also cleared.
18441847
*/
18451848
abstract predicate impliesClearOf(Content c);
1846-
1847-
abstract int getIndirectionIndex();
1848-
}
1849-
1850-
predicate foo(FieldContent f) {
1851-
exists(int i, Field ff |
1852-
i = f.getIndirectionIndex() and
1853-
ff = f.getField()
1854-
)
18551849
}
18561850

18571851
/** A reference through a non-union instance field. */
@@ -1869,6 +1863,7 @@ class FieldContent extends Content, TFieldContent {
18691863

18701864
Field getField() { result = f }
18711865

1866+
/** Gets the indirection index of this `FieldContent`. */
18721867
pragma[inline]
18731868
override int getIndirectionIndex() {
18741869
pragma[only_bind_into](result) = pragma[only_bind_out](indirectionIndex)

0 commit comments

Comments
 (0)