This ensures that we format:
void longFunctionName {
} // long comment here
And not:
void longFunctionName {}
// long comment here
As requested in post-commit-review.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182024
91177308-0d34-0410-b5e6-
96231b3b80d8
"}");
verifyFormat("void f() {} // comment");
verifyFormat("void f() { int a; } // comment");
+ verifyFormat("void f() {\n"
+ "} // comment",
+ getLLVMStyleWithColumns(15));
verifyFormat("void f() { return 42; }", getLLVMStyleWithColumns(23));
verifyFormat("void f() {\n return 42;\n}", getLLVMStyleWithColumns(22));