]> granicus.if.org Git - clang/commit
clang-format: [JS] do not break after declare namespace.
authorMartin Probst <martin@probst.io>
Thu, 10 Nov 2016 16:21:02 +0000 (16:21 +0000)
committerMartin Probst <martin@probst.io>
Thu, 10 Nov 2016 16:21:02 +0000 (16:21 +0000)
commit0782534019a4550ffd4921391299a4f0c63abb42
treefe4ec3d0ff77bfb9de2f56b3e37dacccd1a6d1d0
parent20ecf8b618e650bfc40b05ed623bda96d3edca91
clang-format: [JS] do not break after declare namespace.

Summary:
See TypeScript grammar for tokens following 'declare':
https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#A.10

Additional minor change:
clang-format: [JS] Prevent ASI before const.

Reviewers: djasper

Subscribers: cfe-commits, klimek

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

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