[llvm-bugs] [Bug 48968] New: BreakBeforeBraces: Attach ignored with trailing requires-expression of function

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 30 11:39:22 PST 2021


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

            Bug ID: 48968
           Summary: BreakBeforeBraces: Attach ignored with trailing
                    requires-expression of function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: johelegp at gmail.com
                CC: djasper at google.com, johelegp at gmail.com,
                    klimek at google.com, llvm-bugs at lists.llvm.org

.clang-format:
```
BreakBeforeBraces: Attach
```

Input and expected formatted result:
```C++
void f() requires requires { a; } {
  b;
  return c;
}
```

Actual output:
```C++
void f() requires requires { a; }
{
  b;
  return c;
}
```

-- 
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/20210130/8b10d772/attachment.html>


More information about the llvm-bugs mailing list