Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions dstyle.dd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down