diff --git a/dstyle.dd b/dstyle.dd index 1ada5f0acb..f7039d2dc3 100644 --- a/dstyle.dd +++ b/dstyle.dd @@ -359,6 +359,23 @@ void foo(R)(R r) if (R == 1) ------------------------------- ) +$(LISTSECTION Class/Struct Field Declarations, + $(LI In structs and classes, there should only be one space between the type of + the field and its name. This avoids problems with future changes generating a + larger git diff than necessary.) +------------------------------- +class MyClass +{ + // bad + int a; + double b; + + // good + int x; + double y; +} +------------------------------- +) $(BR) $(P