Skip to content

Commit 4017b39

Browse files
rvermeulenNicolas Kraiouchkine
and
Nicolas Kraiouchkine
authored
Apply suggestions from code review
Co-authored-by: Nicolas Kraiouchkine <[email protected]>
1 parent 6f6f023 commit 4017b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/autosar/src/rules/M0-1-4/SingleUsePODVariable.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ private string getConstExprValue(Variable v) {
1111
}
1212

1313
/**
14-
* Gets the number of uses of variable `v` in an opaque assignment, where an opaqua assignment for example a cast from one type to the other and `v` is assumed to be a member of the resulting type.
14+
* Gets the number of uses of variable `v` in an opaque assignment, where an opaque assignment is a cast from one type to the other, and `v` is assumed to be a member of the resulting type.
1515
* e.g.,
1616
* struct foo {
1717
* int bar;
@@ -42,7 +42,7 @@ Expr getIndirectSubObjectAssignedValue(MemberVariable subobject) {
4242
result = externalInitializerCall
4343
)
4444
or
45-
// the object this subject is part of is initialized and we assumes this initializes the subobject.
45+
// the object this subject is part of is initialized and we assume this initializes the subobject.
4646
instanceOfSomeStruct.getType() = someStruct and
4747
result = instanceOfSomeStruct.getInitializer().getExpr()
4848
)

0 commit comments

Comments
 (0)