]> granicus.if.org Git - clang/commit
clang-format: [JS] fix incorrectly collapsed lines after export
authorDaniel Jasper <djasper@google.com>
Fri, 12 Jun 2015 04:52:02 +0000 (04:52 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 12 Jun 2015 04:52:02 +0000 (04:52 +0000)
commit6281b76cbda247396d26ebaaa135655e2ec0e965
treeb99c1b6def25ce977711e66886f54f3cad689a33
parent1af86129467a1869dc8baf11377f88e311bfb9cd
clang-format: [JS] fix incorrectly collapsed lines after export
statement.

When an exported function would follow a class declaration, it would not
be recognized as a stand-alone function. That would then collapse the
following line with the current one, e.g.

  class C {}
  export function f() {} var x;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@239592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTestJS.cpp