This revision was automatically updated to reflect the committed changes.
Closed by commit rL296330: clang-format: [JS] whitespace after async in arrow
functions. (authored by mprobst).
Changed prior to commit:
https://reviews.llvm.org/D30399?vs=89859&id=89860#toc
Repository:
rL LLVM
https:
mprobst updated this revision to Diff 89859.
mprobst added a comment.
- Extract local variable for next non comment.
https://reviews.llvm.org/D30399
Files:
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
Index: unittests/Format/FormatTestJS.cpp
djasper added inline comments.
Comment at: lib/Format/TokenAnnotator.cpp:2229
+if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) &&
+Right.MatchingParen && Right.MatchingParen->getNextNonComment() &&
+Right.MatchingParen->getNextNonComment()->is(TT_JsFa
bkramer accepted this revision.
bkramer added a comment.
This revision is now accepted and ready to land.
lg, but I don't really know JS ;)
https://reviews.llvm.org/D30399
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org
mprobst created this revision.
Herald added a subscriber: klimek.
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 fr