[llvm-bugs] [Bug 32627] New: clang-format/java: method call on anonymous inner class is indented weirdly
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Apr 11 09:50:22 PDT 2017
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: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170411/5d46e94a/attachment.html>
More information about the llvm-bugs
mailing list