This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] do not wrap @see tags.
ClosedPublic

Authored by mprobst on Mar 13 2017, 2:36 AM.

Details

Summary

@see is special among JSDoc tags in that it is commonly followed by URLs. The JSDoc spec suggests that users should wrap URLs in an additional {@link url...} tag (@see http://usejsdoc.org/tags-see.html), but this is very commonly violated, with @see being followed by a "naked" URL.

This change special cases all JSDoc lines that contain an @see not to be wrapped to account for that.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Mar 13 2017, 2:36 AM
djasper accepted this revision.Mar 13 2017, 2:46 AM

Looks good.

This revision is now accepted and ready to land.Mar 13 2017, 2:46 AM
This revision was automatically updated to reflect the committed changes.