clang-format produced code that (choose all that apply):
- Doesn't match Chromium style
- Riles my finely honed stylistic dander
- No sane human would ever choose
Here's the code before formatting:
doAnswer((invocation) -> { support.onDismiss(); return null; }).when(bubble).dismiss();
Here's the code after formatting:
doAnswer((invocation) -> {
support.onDismiss();
return null;
})
.when(bubble)
.dismiss();
Here's how it ought to look:
Not quite sure. Maybe something like the following (or maybe the above is actually correct!).
doAnswer((invocation) -> {
support.onDismiss();
return null;
}).when(bubble).dismiss();
Code review link for full files/context:
Comment 1 by benhenry@chromium.org
, Aug 1