This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] handle let (ES6).
ClosedPublic

Authored by mprobst on Sep 28 2015, 6:20 AM.

Details

Reviewers
klimek
djasper
Summary

clang-format: [JS] handle let (ES6).

Diff Detail

Event Timeline

mprobst updated this revision to Diff 35859.Sep 28 2015, 6:20 AM
mprobst retitled this revision from to clang-format: [JS] handle let (ES6)..
mprobst updated this object.
mprobst added reviewers: klimek, djasper.
mprobst added a subscriber: cfe-commits.
djasper accepted this revision.Sep 28 2015, 6:23 AM
djasper edited edge metadata.
djasper added inline comments.
lib/Format/TokenAnnotator.cpp
2087

Hm.. Or Line.First->isOneOf(Keywords.kw_var, KeyWords.kw_let).

I like that a bit better, but don't really care.

This revision is now accepted and ready to land.Sep 28 2015, 6:23 AM
mprobst updated this revision to Diff 35867.Sep 28 2015, 7:21 AM
mprobst marked an inline comment as done.
mprobst edited edge metadata.

Use isOneOf instead of startsWith.

djasper closed this revision.Sep 28 2015, 7:29 AM

Submitted as r248713.