[llvm-bugs] [Bug 37705] New: allow terse formatting in macros

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 6 09:34:43 PDT 2018


            Bug ID: 37705
           Summary: allow terse formatting in macros
           Product: clang
           Version: 6.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: matthew.woehlke at kitware.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

I'm having a number of issues trying to get clang-format to behave reasonably

For this RFE, basically, I'd like to be able to be able to have
AllowShortFunctionsOnASingleLine be true in macro definitions, as well as
function bodies.

This is related to https://bugs.llvm.org/show_bug.cgi?id=37702, but here, I
want to be able to write both:

  #define blah \
    int foo() { bar(); }


  #define blah \
    int foo(really_long_type x)
    { bar(x); }

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/20180606/2c3e1a96/attachment.html>

More information about the llvm-bugs mailing list