[llvm-bugs] [Bug 47936] AfterControlStatement: MultiLine breaks AllowShortFunctionsOnASingleLine
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 25 00:32:29 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=47936
MyDeveloperDay <mydeveloperday at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Fixed By Commit(s)| |72e4f4a2a117f97118692857d91
| |210fc62c066b0
Resolution|--- |FIXED
Status|CONFIRMED |RESOLVED
--- Comment #5 from MyDeveloperDay <mydeveloperday at gmail.com> ---
Post fix.
$ clang-format --style="{BasedOnStyle: llvm, AllowShortFunctionsOnASingleLine:
Inline, BreakBeforeBraces: Custom, BraceWrapping: {AfterFunction: true,
AfterControlStatement: MultiLine}}" test1.cpp
void bar() {}
class Foo {
void shortfunction() { bar(); }
};
--
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/20211125/a57c51ed/attachment.html>
More information about the llvm-bugs
mailing list