Skip to content

Enum values have inserted a space between the numeric sign and the number #47

Open
@virtuald

Description

@virtuald

Copied from: https://sourceforge.net/p/cppheaderparser/bugs/65/
Reported by: https://sourceforge.net/u/phlibi/

Enum values have inserted a space between the numeric sign and the number:

h=CppHeaderParser.CppHeader('''enum {
FOO = -123
};
''', argType='string')
print(h.enums)

yields:

[{'line_number': 1,
  'namespace': '',
  'type': int,
  'typedef': False,
  'values': [{'name': 'FOO', 'value': '- 123'}]}]

Note the space between '-' and '123'.

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