We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f2099f + ab892ca commit 644d0ffCopy full SHA for 644d0ff
cpp/autosar/src/rules/M9-3-3/MemberFunctionConstIfPossible.ql
@@ -65,7 +65,7 @@ class ConstMemberFunctionCandidate extends NonConstMemberFunction {
65
// For uninstantiated templates we have only partial information that prevents us from determining
66
// if the candidate calls non-const functions. Therefore we exclude these.
67
not this.isFromUninstantiatedTemplate(_) and
68
- //cannot recommend const if it returns a nonconst reference
+ // Cannot recommend const if it returns a non-const reference.
69
not this.getType() instanceof NonConstReferenceType
70
}
71
0 commit comments