mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
C++: Clarify the "most-specific" part of FunctionCall:getTarget
This commit is contained in:
@@ -255,8 +255,10 @@ class FunctionCall extends Call, @funbindexpr {
|
|||||||
/**
|
/**
|
||||||
* Gets the function called by this call.
|
* Gets the function called by this call.
|
||||||
*
|
*
|
||||||
* In the case of virtual function calls, the result is the most-specific function in the override tree (as
|
* In the case of virtual function calls, the result is the most-specific function in the override tree
|
||||||
* determined by the compiler) such that the target at runtime will be one of `result.getAnOverridingFunction*()`.
|
* such that the target at runtime will be one of `result.getAnOverridingFunction*()`. The most-specific
|
||||||
|
* function is determined by the compiler based on the compile time type of the object the function is a
|
||||||
|
* member of.
|
||||||
*/
|
*/
|
||||||
override Function getTarget() { funbind(underlyingElement(this), unresolveElement(result)) }
|
override Function getTarget() { funbind(underlyingElement(this), unresolveElement(result)) }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user