]> granicus.if.org Git - clang/commit
clang-format: [JS/TypeScript] Support "enum" as an optional property name, too.
authorDaniel Jasper <djasper@google.com>
Wed, 3 Feb 2016 05:33:44 +0000 (05:33 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 Feb 2016 05:33:44 +0000 (05:33 +0000)
commit92aeba790d3befad11d91265e22d0f35b1112274
tree0e881c00079765ca9e13e51e3c67ba6463269d9e
parentf4907ca13d81969394a0860c7420cd8f26d7cc14
clang-format: [JS/TypeScript] Support "enum" as an optional property name, too.

Before:
  enum?: string
  [];

After:
  enum?: string[];

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