This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] do not wrap after interface and type.
ClosedPublic

Authored by mprobst on Mar 12 2017, 10:59 AM.

Details

Summary

interface and type are pseudo keywords and cause automatic semicolon
insertion when followed by a line break:

interface  // gets parsed as a long variable access to "interface"
    VeryLongInterfaceName {

}

With this change, clang-format not longer wraps after interface or type.

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Mar 12 2017, 10:59 AM
djasper accepted this revision.Mar 13 2017, 12:01 AM

Looks good.

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