https://bugs.llvm.org/show_bug.cgi?id=32627
Bug ID: 32627
Summary: clang-format/java: method call on anonymous inner
class is indented weirdly
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: nicolaswe...@gmx.de
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
$ cat test.java
class C {
public void f() {
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
// Stuff here
return null;
}
}.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
}
}
$ bin/clang-format -style=Chromium test.java
class C {
public void f() {
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
// Stuff here
return null;
}
}
.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
}
}
The indent is hard to make sense of, and the line break is superfluous too.
(reported at https://bugs.chromium.org/p/chromium/issues/detail?id=710441)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs