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: unassignedclangb...@nondot.org
          Reporter: hyro...@mail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to