clang-format: [JS] keep triple slash directives intact.
authorMartin Probst <martin@probst.io>
Tue, 9 May 2017 12:45:48 +0000 (12:45 +0000)
committerMartin Probst <martin@probst.io>
Tue, 9 May 2017 12:45:48 +0000 (12:45 +0000)
commit2083f31b88c5c47243af904640afea194b7d424c
tree472a9e032152ae24991f8dbf5abac5b725312ae9
parent7aedf33a241da0c5bffc4d5a9e723bf8291993e5
clang-format: [JS] keep triple slash directives intact.

Summary:
TypeScript uses triple slash directives of the form:
    /// <reference path="..."/>

For various non-source instructions that should not be wrapped.

Reference:
https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html

Reviewers: djasper

Subscribers: cfe-commits, klimek

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

llvm-svn: 302523
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTestJS.cpp