[llvm-bugs] [Bug 40520] New: clang-format BreakBeforeBraces: Custom and IndentBraces: true

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 30 01:31:01 PST 2019


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

            Bug ID: 40520
           Summary: clang-format BreakBeforeBraces: Custom and
                    IndentBraces: true
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fedor.birjukov at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

I tried these settings:
BreakBeforeBraces:   Custom
BraceWrapping:
  IndentBraces:      true

Expecting to see something like this:
void func()
   {
   // ...
   }
class X
   {
   public:
      // ...
   }
namespace Y
   {
   namespace Z
      {
      // ...
      }
   }
for (;;)
   {
   // ...
   }
if ()
   {
   // ...
   }
else
   {
   // ...
   }

But it did not work as expected.

Any ideas?

Tried that for all versions >=5.

-- 
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/20190130/42e534b1/attachment.html>


More information about the llvm-bugs mailing list