Skip to content

set order of attributes #167

Closed
Closed
@JHenneberg

Description

@JHenneberg

While reading the style guide STYLE_GUIDE.md I noticed that the order of the attributes is not specified.

Going through the source files the order seems:

  1. allocatable
  2. dimension
  3. intent(intent-spec)
  4. optional

Although it is not clear if allocatable should be after oder before dimension

Missing attributes I can think of right now are:

  • target, pointer
  • parameter
  • public, private, protected
  • asynchronous
  • save
  • external
  • contiguous
  • volatile

So lets come up with a convention for the order of attributes.

Suggestion so far for STYLE_GUIDE.md

# Order of attributes

Similiar to the guidlines for indentation and whitespace, specifiying the order of appearance of attributes can  help reviewing code and git-diffs.

1. ```allocatable```
2. ```dimension```
3. ```intent(<>)```
4. ...

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