Skip to content

Commit cb39525

Browse files
authored
Merge pull request github#3847 from nickrolfe/71-this-followup
C++: make MemberFunction::getTypeOfThis() return PointerType
2 parents 8ff8b3e + 09e13ca commit cb39525

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ class MemberFunction extends Function {
7272
}
7373

7474
/**
75-
* Gets the type of the `this` parameter associated with this member function, if any. Typically,
76-
* this will be a `PointerType`, possibly with `const` and/or `volatile` qualifiers.
75+
* Gets the type of the `this` parameter associated with this member function, if any. The type
76+
* may have `const` and/or `volatile` qualifiers, matching the function declaration.
7777
*/
78-
Type getTypeOfThis() {
78+
PointerType getTypeOfThis() {
7979
member_function_this_type(underlyingElement(this), unresolveElement(result))
8080
}
8181
}

0 commit comments

Comments
 (0)