diff options
author | Daniel Jasper <djasper@google.com> | 2016-02-22 15:06:53 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-02-22 15:06:53 +0000 |
commit | 02cbeb2222ce12f2eaccace0be0e09869a6209e0 (patch) | |
tree | 3e957a7576ef927aeedf21e9408495823bdb6ddc /clang/unittests/Format/FormatTestJS.cpp | |
parent | 336186747067cb093d863daf658165ad40628749 (diff) | |
download | bcm5719-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.cpp | 2 |
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( |