fieldReference

Coverity Documentation

Version
latest

Matches where fields are referenced in expressions.

This pattern only matches nodes of type expression.

Properties

fieldReference produces a record that contains the following property:

Name Type Description
fieldSymbol symbol The name of the field

Inherits properties from:

Example

The following CodeXM pattern matches when the field example is referenced:


CXM code follows
    pattern referringToExample {
        fieldReference {
            .fieldSymbol == symbol { .simpleName == "example"}
        }
    };