clang-format: [JS] generator and async functions.
authorMartin Probst <martin@probst.io>
Sun, 24 Apr 2016 22:05:09 +0000 (22:05 +0000)
committerMartin Probst <martin@probst.io>
Sun, 24 Apr 2016 22:05:09 +0000 (22:05 +0000)
commit5f8445b32ab42cd1ad9f1262175488c04921441b
tree9c85be4dce60f9a82567451732df8ad66f4df6d0
parent468d327b343eabdceea9541985818ac166c79ddf
clang-format: [JS] generator and async functions.

For generators, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_generators
async functions are not quite in the spec yet, but stage 3 and already widely used:
http://tc39.github.io/ecmascript-asyncawait/

Reviewers: djasper

Subscribers: klimek

Differential Revision: http://reviews.llvm.org/D19204

llvm-svn: 267368
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestJS.cpp