]> granicus.if.org Git - clang/commit
clang-format: [JS] Support comments in dict literals.
authorDaniel Jasper <djasper@google.com>
Thu, 4 Sep 2014 14:58:30 +0000 (14:58 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 4 Sep 2014 14:58:30 +0000 (14:58 +0000)
commitc11fbde24beed434ccc7c4816ead932378454f6d
treec1fa4cae67975418d53beb3d717cb94e17e958cf
parent1c3af32b532709141782e8ab05d8016972a5446b
clang-format: [JS] Support comments in dict literals.

Before:
  var stuff = {
    // comment for update
    update : false,
             // comment for update
    modules : false,
              // comment for update
    tasks : false
  };

After:
  var stuff = {
    // comment for update
    update : false,
    // comment for update
    modules : false,
    // comment for update
    tasks : false
  };

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