This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] do not break in ArrayType[].
ClosedPublic

Authored by mprobst on Nov 24 2017, 6:11 AM.

Details

Summary

Wrapping between the type name and the array type indicator creates
invalid syntax in TypeScript.

Before:

const xIsALongIdent:
    YJustBarelyFitsLinex
        [];  // illegal syntax.

After:

const xIsALongIdent:
    YJustBarelyFitsLinex[];

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Nov 24 2017, 6:11 AM
djasper accepted this revision.Nov 24 2017, 8:38 AM

Looks good.

This revision is now accepted and ready to land.Nov 24 2017, 8:38 AM
This revision was automatically updated to reflect the committed changes.