functionReference

Coverity Documentation

Version
latest

Matches expressions that reference functions.

This pattern only matches nodes of type expression.

Properties

functionReference produces a record that contains the following property:

Name Type Description
functionSymbol symbol The symbol that represents the function

Inherits properties from:

Example

The following CodeXM pattern matches calls to a function named example():


CXM code follows
    pattern callToExample {
        functionCall {
            .calledExpression == functionReference {
                .functionSymbol
                    == functionSymbol {
                        .simpleName ==  "example"
                       }
                                 }
        }
    };

See also

functionCall