Skip to content

Commit 81c58d5

Browse files
committed
CPP: Improve QLDoc comments.
1 parent 0c3f4e5 commit 81c58d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cpp/ql/src/semmle/code/cpp/NestedFields.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import 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
*/
87
private 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
*/
2019
private Expr getUltimateQualifier(FieldAccess fa) {
2120
exists(Expr qualifier | qualifier = fa.getQualifier() |

0 commit comments

Comments
 (0)