summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-02-22 15:06:53 +0000
committerDaniel Jasper <djasper@google.com>2016-02-22 15:06:53 +0000
commit02cbeb2222ce12f2eaccace0be0e09869a6209e0 (patch)
tree3e957a7576ef927aeedf21e9408495823bdb6ddc /clang/unittests/Format/FormatTestJS.cpp
parent336186747067cb093d863daf658165ad40628749 (diff)
downloadbcm5719-llvm-02cbeb2222ce12f2eaccace0be0e09869a6209e0.tar.gz
bcm5719-llvm-02cbeb2222ce12f2eaccace0be0e09869a6209e0.zip
clang-format: [JS] treat forwardDeclare as an import/export statement.
Patch by Martin Probst. Thank you. llvm-svn: 261528
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index e08c876a5c6..255f11e0ef3 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -277,6 +277,8 @@ TEST_F(FormatTestJS, GoogModules) {
getGoogleJSStyleWithColumns(40));
verifyFormat("goog.setTestOnly('this.is.really.absurdly.long');",
getGoogleJSStyleWithColumns(40));
+ verifyFormat("goog.forwardDeclare('this.is.really.absurdly.long');",
+ getGoogleJSStyleWithColumns(40));
// These should be wrapped normally.
verifyFormat(
OpenPOWER on IntegriCloud