[PATCH] D32590: clang-format: [JS] parse async function declarations.
Daniel Jasper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 27 06:14:34 PDT 2017
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Looks good.
================
Comment at: lib/Format/UnwrappedLineParser.cpp:1043
- // Parse function literal unless 'function' is the first token in a line
- // in which case this should be treated as a free-standing function.
+ // function declarations (as opposed to function expressions) are parsed
+ // on their own unwrapped line by continuing this loop. function
----------------
Nit: I'd start this and the next sentence upper case.
https://reviews.llvm.org/D32590
More information about the cfe-commits
mailing list