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)
commit8737930cac339ea658edec2be0c53170192a7845
treee4e77af3e12a58731afb2289ba6661662f8dcc4c
parent305bf59335e741fca9e1b9394900cdcd2ca98664
clang-format: [JS/TypeScript] Support "enum" as an optional property name, too.

Before:
  enum?: string
  [];

After:
  enum?: string[];

llvm-svn: 259628
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestJS.cpp