This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] handle conditionals in fields, default params.
ClosedPublic

Authored by mprobst on Jun 23 2016, 1:37 PM.

Details

Diff Detail

Event Timeline

mprobst updated this revision to Diff 61716.Jun 23 2016, 1:37 PM
mprobst retitled this revision from to clang-format: [JS] handle conditionals in fields, default params..
mprobst updated this object.
mprobst added a reviewer: djasper.
mprobst added a subscriber: cfe-commits.
djasper added inline comments.Jun 23 2016, 2:24 PM
lib/Format/TokenAnnotator.cpp
1001

Well, if you keep the Line.MustBeDeclaration here, then the test case does not regress. I believe that the test in itself probably doesn't make much sense, but at least then we aren't regressing it. At any rate, it seems bad to keep the Line.MustBeDeclaration above and remove it here.

djasper accepted this revision.Jun 23 2016, 2:46 PM
djasper edited edge metadata.

Looks good except that the patch description can now be updated.

This revision is now accepted and ready to land.Jun 23 2016, 2:46 PM
This revision was automatically updated to reflect the committed changes.