File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments