Skip to content

Add rules for subprogram instantiation declarations #1318

@JHertz5

Description

@JHertz5

Is your feature request related to a problem? Please describe.
For subprogram instantiation declarations, e.g.

function my_func is new my_func
  generic map (
    test => c_test
  );

there are very few rules that act on this code.

For example, I can have the following, very ugly code

        FUNCTION MY_FUNC2 IS NEW MY_FUNC
GENERIC
MAP (
TEST => C_TEST
)
;

and running vsg --fix on it produces

  function MY_FUNC2 IS NEW MY_FUNC
GENERIC
MAP (
TEST => C_TEST
)
;

where ideally, I would like it to be fixed to the first snippet in this issue.

Describe the solution you'd like
I would like a set of rules to be created for subprogram instantiation declarations to enforce case, alignment, whitespace, etc.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions