blob: 819414ddd7cf547e6f46a92f361c2f97444ca6a2 [file] [log] [blame]
40 columns |
>>> line comments
enum A {
// comment
B,
// comment
C
// comment
}
<<<
enum A {
// comment
B,
// comment
C
// comment
}
>>> block comments
enum A {
/* comment */
B,
/* comment */
C
/* comment */
}
<<<
enum A {
/* comment */
B,
/* comment */
C
/* comment */
}
>>> remove blank lines before beginning of body
enum A {
// comment
B
}
<<<
enum A {
// comment
B
}
>>> remove blank lines after end of body
enum A {
B
// comment
}
<<<
enum A {
B
// comment
}
>>> ensure blank line above doc comments
enum Foo {/// doc
a,/// doc
b;/// doc
var x = 1;
/// doc
void y() {}}
<<<
enum Foo {
/// doc
a,
/// doc
b;
/// doc
var x = 1;
/// doc
void y() {}
}
>>> line comment after last
enum Foo {
a,
b // comment
}
<<<
enum Foo {
a,
b // comment
}