[PATCH] D32590: clang-format: [JS] parse async function declarations.

2017-04-27 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301538: clang-format: [JS] parse async function declarations. (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D32590?vs=96908&id=96909#toc Repository: rL LLVM https://review

[PATCH] D32590: clang-format: [JS] parse async function declarations.

2017-04-27 Thread Martin Probst via Phabricator via cfe-commits
mprobst updated this revision to Diff 96908. mprobst added a comment. - capitalization https://reviews.llvm.org/D32590 Files: lib/Format/UnwrappedLineParser.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp =

[PATCH] D32590: clang-format: [JS] parse async function declarations.

2017-04-27 Thread Daniel Jasper via Phabricator via cfe-commits
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 th

[PATCH] D32590: clang-format: [JS] parse async function declarations.

2017-04-27 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. Previously, clang-format would accidentally parse an async function declaration as a function expression, and thus not insert an unwrapped line for async functions, causing subsequent functions to run into the function: async fun