This is an archive of the discontinued LLVM Phabricator instance.

clang-format: support optionality markers in JS types
ClosedPublic

Authored by mprobst on Apr 11 2015, 11:19 AM.

Details

Reviewers
djasper
Summary

This removes a space preceding optionality markers in JS types, e.g. in "function(x?: y) {}".

Also refactors the detection logic for TT_JsTypeColon to be a bit more readable.

Diff Detail

Event Timeline

mprobst updated this revision to Diff 23641.Apr 11 2015, 11:19 AM
mprobst retitled this revision from to clang-format: support optionality markers in JS types.
mprobst updated this object.
mprobst edited the test plan for this revision. (Show Details)
mprobst added a reviewer: djasper.
mprobst added subscribers: Unknown Object (MLST), klimek.
djasper accepted this revision.Apr 13 2015, 8:04 AM
djasper edited edge metadata.

Submitted as r234753.

This revision is now accepted and ready to land.Apr 13 2015, 8:04 AM
djasper closed this revision.Apr 13 2015, 8:04 AM