File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11import cpp
22
33/**
4- * Gets a `Field` that is nested within the given `Struct`.
5- *
6- * This identifies `Field`s which are located in the same memory
4+ * Gets a `Field` that is within the given `Struct`, either directly or nested
5+ * inside one or more levels of member structs.
76 */
87private Field getANestedField ( Struct s ) {
98 result = s .getAField ( )
@@ -15,7 +14,7 @@ private Field getANestedField(Struct s) {
1514}
1615
1716/**
18- * Unwraps a series of field accesses to determine the inner -most qualifier.
17+ * Unwraps a series of field accesses to determine the outer -most qualifier.
1918 */
2019private Expr getUltimateQualifier ( FieldAccess fa ) {
2120 exists ( Expr qualifier | qualifier = fa .getQualifier ( ) |
You can’t perform that action at this time.
0 commit comments