]> granicus.if.org Git - clang/commit
clang-format: [JS] Fix line breaks in computed property names.
authorDaniel Jasper <djasper@google.com>
Sun, 31 May 2015 08:40:37 +0000 (08:40 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 31 May 2015 08:40:37 +0000 (08:40 +0000)
commitc374976da0576a91618936110fefda935461e6b6
treef1b3cfb2ee0526355e42fed22ba51d005c9db81c
parent9c667dae4d2a24f5bc5fa61aacaf7ce9788c512e
clang-format: [JS] Fix line breaks in computed property names.

Before:
  let foo = {
    [someLongKeyHere]: 1,
    someOtherLongKeyHere: 2, [keyLongEnoughToWrap]: 3,
    lastLongKey: 4
  };

After:
  let foo = {
    [someLongKeyHere]: 1,
    someOtherLongKeyHere: 2,
    [keyLongEnoughToWrap]: 3,
    lastLongKey: 4
  };

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