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 {
1833
1833
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0
1834
1834
}
1835
1835
1836
+ /** Gets the indirection index of this `Content`. */
1837
+ abstract int getIndirectionIndex ( ) ;
1838
+
1836
1839
/**
1837
1840
* INTERNAL: Do not use.
1838
1841
*
@@ -1843,15 +1846,6 @@ class Content extends TContent {
1843
1846
* the form `*f` is also cleared.
1844
1847
*/
1845
1848
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
- )
1855
1849
}
1856
1850
1857
1851
/** A reference through a non-union instance field. */
@@ -1869,6 +1863,7 @@ class FieldContent extends Content, TFieldContent {
1869
1863
1870
1864
Field getField ( ) { result = f }
1871
1865
1866
+ /** Gets the indirection index of this `FieldContent`. */
1872
1867
pragma [ inline]
1873
1868
override int getIndirectionIndex ( ) {
1874
1869
pragma [ only_bind_into ] ( result ) = pragma [ only_bind_out ] ( indirectionIndex )
You can’t perform that action at this time.
0 commit comments