From e7d8f021668f824a83ae5fc36133327c22174d79 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Sat, 1 Jul 2017 01:56:56 +0200 Subject: [PATCH] Add attributes ordering to the DStyle --- dstyle.dd | 1 + 1 file changed, 1 insertion(+) diff --git a/dstyle.dd b/dstyle.dd index 7041b958f5..f5fc4e2510 100644 --- a/dstyle.dd +++ b/dstyle.dd @@ -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.)