]> granicus.if.org Git - clang/commit
clang-format: [JS] whitespace after async in arrow functions.
authorMartin Probst <martin@probst.io>
Mon, 27 Feb 2017 11:15:53 +0000 (11:15 +0000)
committerMartin Probst <martin@probst.io>
Mon, 27 Feb 2017 11:15:53 +0000 (11:15 +0000)
commit7cf8dd5ce168bed45b57e019149e33300c56f94b
tree795e9b69e348501a450ffebff82d551b5a0c612e
parent4b4a06c6798637cd119e355c9ff31073ce6e3acc
clang-format: [JS] whitespace after async in arrow functions.

Summary:
Async arrow functions should be marked with a whitespace after the async keyword, before the parameter list:
    x = async () => foo();

Before:
    x = async() => foo();

This makes it easier to tell apart an async arrow function from a call to a function called async.

Reviewers: bkramer

Subscribers: cfe-commits, klimek

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

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