Skip to content

Commit

Permalink
Add attributes ordering to the DStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Jun 30, 2017
1 parent 1ca1706 commit e7d8f02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dstyle.dd
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ $(LISTSECTION Attributes,
matching attributes (`@nogc`, `@safe`, `pure`, `nothrow`).)
$(LI $(I Templated) functions should $(B not) be annotated with attributes
as the compiler can infer them.)
$(LI Attributes should be listed in alphabetical ordering, e.g. `const @nogc nothrow pure @safe`)
$(LI $(B Every) $(I unittest) should be annotated
(e.g. `pure nothrow @nogc @safe unittest { ... }`)
to ensure the existence of attributes on the templated function.)
Expand Down

0 comments on commit e7d8f02

Please sign in to comment.