Skip to content

Multidimensional array dimensions not parsed when using variable #72

@Marvin-TMG

Description

@Marvin-TMG

I am trying to parse C structs which contain array's defined using variables.

The single dimension arrays are parsed correctly, i.e.
long my1dArray[SOME_VAR];

which returns something like:
'array_size': 'SOME_VAR'

However, for multidimensional arrays the array size is not parsed correctly and returns an empty string:
long my2dArray[SOME_VAR][SOME_VAR];

'array_size':1
'multi_dimensional_array':1
'multi_dimensional_array_size':''

It would be great if array sizes using variable names for multi-dimensional arrays can be supported, since now I need to write a custom parser to retrieve the dimensions myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions