summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-05-09 12:45:48 +0000
committerMartin Probst <martin@probst.io>2017-05-09 12:45:48 +0000
commit2083f31b88c5c47243af904640afea194b7d424c (patch)
tree472a9e032152ae24991f8dbf5abac5b725312ae9 /clang/unittests/Format
parent7aedf33a241da0c5bffc4d5a9e723bf8291993e5 (diff)
downloadbcm5719-llvm-2083f31b88c5c47243af904640afea194b7d424c.tar.gz
bcm5719-llvm-2083f31b88c5c47243af904640afea194b7d424c.zip
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
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 9144fe17e9e..288975374de 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -1785,6 +1785,7 @@ TEST_F(FormatTestJS, ImportComments) {
verifyFormat("import {x} from 'x'; // from some location",
getGoogleJSStyleWithColumns(25));
verifyFormat("// taze: x from 'location'", getGoogleJSStyleWithColumns(10));
+ verifyFormat("/// <reference path=\"some/location\" />", getGoogleJSStyleWithColumns(10));
}
TEST_F(FormatTestJS, Exponentiation) {
OpenPOWER on IntegriCloud