Skip to content

[C] struct field is seen as a declaration inside a struct #1830

@ismell

Description

@ismell

Defining a child struct pointer in a struct should not be treated as a struct declaration.

screenshot from 2019-01-09 10-30-47

struct child_t {
	int foo;
};

struct parent_t {
	struct child_t *child_pointer;
//             ^ - entity.name.struct [ This check fails ]
	struct child_t child;
//             ^ - entity.name.struct
	struct nested_t {
//             ^ entity.name.struct
		int bar;
	} nested;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions