]> granicus.if.org Git - clang/commit
clang-format: [JS] do not wrap after interface and type.
authorMartin Probst <martin@probst.io>
Mon, 13 Mar 2017 07:10:18 +0000 (07:10 +0000)
committerMartin Probst <martin@probst.io>
Mon, 13 Mar 2017 07:10:18 +0000 (07:10 +0000)
commit6b5ac5c7659e39717a525c3858f269875ab98665
tree2c0be509aba2e840edc2a43f1175e589b57fb40e
parent010c6d13be63af4b82db8cb0e4c157f9289d0110
clang-format: [JS] do not wrap after interface and type.

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`.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D30874

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp