]> granicus.if.org Git - clang/commit
clang-format: [JS] do not wrap after async/await.
authorMartin Probst <martin@probst.io>
Thu, 30 Nov 2017 10:25:17 +0000 (10:25 +0000)
committerMartin Probst <martin@probst.io>
Thu, 30 Nov 2017 10:25:17 +0000 (10:25 +0000)
commitf64fbddb87285b85fcc88b0455e0e731ff14032f
treea722b217a2f604e7259274d6cb19cb10b4d62246
parent66ded8c1f9b811b5a0f31c368f6feaf86ae932d2
clang-format: [JS] do not wrap after async/await.

Summary:
Otherwise automatic semicolon insertion can trigger, i.e. wrapping
produces invalid syntax.

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: https://reviews.llvm.org/D40642

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