Skip to content

Commit 101ca72

Browse files
committed
specified order of attributes
1 parent 6661975 commit 101ca72

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

STYLE_GUIDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ focus on the semantics of the proposed changes rather than style and formatting.
4242
* Where conventional and appropriate shortening of a word is used then the underscore may be omitted,
4343
for example `linspace` is preferred over `lin_space`
4444

45+
## Order of attributes
46+
47+
Similiar to the guidlines for indentation and whitespace, specifiying the order of appearance of attributes can help reviewing code and git-diffs.
48+
49+
1. ```dimension```
50+
2. ```allocatable```
51+
3. ```intent(intent-spec)```
52+
4. ```optional```
53+
4554
## End <scope> block closing statements
4655

4756
Fortran allows certain block constructs or scopes to include the name of the program unit in the end statement.

0 commit comments

Comments
 (0)