mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 01:07:04 +08:00
clang-format: [Java] Fix incorrect recognition of annonymous classes.
Before:
someFunction(new Runnable() { public void run() { System.out.println(42);
}
});
After:
someFunction(new Runnable() {
public void run() {
System.out.println(42);
}
});
llvm-svn: 225142
This commit is contained in:
@@ -387,6 +387,11 @@ TEST_F(FormatTestJava, FormatsInnerBlocks) {
|
||||
" System.out.println(42);\n"
|
||||
" }\n"
|
||||
"}, someOtherParameter);");
|
||||
verifyFormat("someFunction(new Runnable() {\n"
|
||||
" public void run() {\n"
|
||||
" System.out.println(42);\n"
|
||||
" }\n"
|
||||
"});");
|
||||
verifyFormat("someObject.someFunction(\n"
|
||||
" new Runnable() {\n"
|
||||
" @Override\n"
|
||||
|
||||
Reference in New Issue
Block a user