Skip to content

Commit

Permalink
Add newlines to not generate such ugly code.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 25, 2019
1 parent bdc560d commit 959131e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/bindgen/ir/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@ impl Source for Enum {
write!(out, "{}()", self.export_name);
out.open_brace();
out.close_brace(false);
out.new_line();
write!(out, "public:");
out.new_line();
}
Expand Down
12 changes: 8 additions & 4 deletions tests/expectations/destructor-and-copy-ctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ struct Foo {
private:
Foo() {

}public:
}
public:


~Foo() {
Expand Down Expand Up @@ -283,7 +284,8 @@ union Baz {
private:
Baz() {

}public:
}
public:


~Baz() {
Expand Down Expand Up @@ -368,7 +370,8 @@ union Taz {
private:
Taz() {

}public:
}
public:


~Taz() {
Expand Down Expand Up @@ -429,7 +432,8 @@ union Tazz {
private:
Tazz() {

}public:
}
public:

};

Expand Down

0 comments on commit 959131e

Please sign in to comment.