getFunctionOverridees( f )

Coverity Documentation

Version
latest

Returns all the overridees of a given functionSymbol.

Parameters and return value

Name Type Description
f functionSymbol The functionSymbol to get the overridees of
return value set<functionSymbol> The overridees of the argument, as a set

The following CodeXM function determines whether a function overrides a function named example():


CXM code follows
    function overridesExample( f : typeof(functionSymbol).producedType ) : bool ->
        let overridees = getFunctionOverridees( f ) in
        for a in overridees accumulate b : bool = false:
            a matches functionSymbol { .simpleName == "example" } || b;