This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] handle union types in arrow functions.
ClosedPublic

Authored by mprobst on Aug 1 2017, 6:28 AM.

Details

Summary

clang-format would previously fail to detect that an arrow functions parameter block is not an expression, and thus insert whitespace around the | and & type operators in it.

Event Timeline

mprobst created this revision.Aug 1 2017, 6:28 AM
This revision is now accepted and ready to land.Aug 1 2017, 8:55 AM
This revision was automatically updated to reflect the committed changes.