[llvm-bugs] [Bug 34767] New: clang-format disrespects AllowShortFunctionsOnASingleLine setting with lambda functions

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 28 09:00:35 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34767

            Bug ID: 34767
           Summary: clang-format disrespects
                    AllowShortFunctionsOnASingleLine setting with lambda
                    functions
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timur.kristof at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

AllowShortFunctionsOnASingleLine setting is disrespected with regards to C++
lambda functions.

In the clang-format config I set the following:
AllowShortFunctionsOnASingleLine: 'false'

Expected output:
com->callbackOutgoingMessageSent = [] {
    com->goToRxMode();
};

Actual output:
com->callbackOutgoingMessageSent = [] { com->goToRxMode(); };

-- 
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/20170928/b936f66c/attachment.html>


More information about the llvm-bugs mailing list