[llvm-bugs] [Bug 39850] New: Misformatting first of two idnetical blocks

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 30 07:33:04 PST 2018


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

            Bug ID: 39850
           Summary: Misformatting first of two idnetical blocks
           Product: clang
           Version: 3.8
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hyrosen at mail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

This problem first appears in clang-format 3.8.0 (based on my testing with
https://zed0.co.uk/clang-format-configurator/) and persists through HEAD.  This
is plain clang-format running in llvm style.

The following code:

{
  {
    { int a; }
  }
}

{
  {
    { int a; }
  }
}

now formats as

{{{int a;
}
}
}

{
  {
    { int a; }
  }
}

-- 
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/20181130/34820c51/attachment.html>


More information about the llvm-bugs mailing list