Skip to content

Enum value is removed with this comment #516

@JuPrgn

Description

@JuPrgn

Ceedling => 1.0.2-72c0935
CMock => 2.6.0
Unity => 2.6.1
CException => 1.3.4

I encountered a bug with the following enumeration:

typedef enum
{
    CO_ERROR_INVALID_STATE = -18,   /**< Driver not ready */
    CO_ERROR_NODE_ID_UNCONFIGURED_LSS = -19 /**< Node-id is in LSS unconfigured
                                         state. If objects are handled properly,
                                         this may not be an error. */
} CO_ReturnError_t;

After being mocked (or maybe preprocessed?) it turns into build/test/mocks/test_ModA/ModB.h:

typedef enum
{
    CO_ERROR_INVALID_STATE = -18,
    CO_ERROR_NODE_ID_UNCONFIGURED_LSS = -

} CO_ReturnError_t;

As you can see, the enum value gets removed along with the comment, leaving only CO_ERROR_NODE_ID_UNCONFIGURED_LSS = -
It looks like this issue is related to the format/content of the comment, since this is the only case in my project where the parser fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions