enumReference

Coverity Documentation

Version
latest

Matches expressions that reference an enum.

This pattern only matches nodes of type expression.

Properties

enumReference produces a record that contains the following property:

Name Type Description
enumVariableSymbol symbol The symbol that refers to this enum

Inherits properties from:

Example

The following CodeXM pattern matches enum instances that have the identifer Example:


CXM code follows
    pattern enumReferenceExample {
        enumReference {
            .enumVariableSymbol == enumVariableSymbol { .simpleName == "Example" }
        }
    };