]> granicus.if.org Git - clang/commit
clang-format: [JS] support `interface` as a free standing identifier.
authorMartin Probst <martin@probst.io>
Tue, 19 Apr 2016 18:18:59 +0000 (18:18 +0000)
committerMartin Probst <martin@probst.io>
Tue, 19 Apr 2016 18:18:59 +0000 (18:18 +0000)
commit7218c7c0cdea3fdc1800af570caf8ad05f71576e
treeda58e55eba201a0a8856b052d60646f2f8442814
parent587026a6d94b697d1bba9f812629c8f4c01b135c
clang-format: [JS] support `interface` as a free standing identifier.

Summary:
`interface` can be used as a fee standing identifier in JavaScript/TypeScript.
This change uses the heuristic of whether it's followed by another identifier
as an indication.

Reviewers: djasper

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D19240

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