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

            Bug ID: 34081
           Summary: clang-format doesn't break before a function brace in
                    a javascript property
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: thosrtanne...@yahoo.co.uk
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

this ends up looking rather strange if everywhere else you have breaks.

Thus what I expect:

function func1()
{
  stuff();
}

const icon_observer = {
  on_drag_over : function(event) 
  {
    if (stuff())
    {
      return;
    }
  }
}

what I actually get is:

function func1()
{
  stuff();
}

const icon_observer = {
  on_drag_over : function(event) {
    if (stuff())
    {
      return;
    }
  }
}

I'm not sure if this is a bug or enhancement - there don't seem to be any brace
options that cover this (or the vaguely related - I'd like the { on a newline
after the '=' there).

-- 
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