summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-03-31 12:04:37 +0000
committerDaniel Jasper <djasper@google.com>2017-03-31 12:04:37 +0000
commit72b3357f2d39adb0cf88fef992cd2570452d90ac (patch)
treea61cce20923f3f423c5c8212458d86d9146cc53d /clang/unittests/Format/FormatTestJS.cpp
parentf698a69107e39727d81d2ed1dd51445981adede7 (diff)
downloadbcm5719-llvm-72b3357f2d39adb0cf88fef992cd2570452d90ac.tar.gz
bcm5719-llvm-72b3357f2d39adb0cf88fef992cd2570452d90ac.zip
clang-format: [JavaScript] Ignore QT keywords.
llvm-svn: 299204
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 62d7ec86c91..f24ddc8fa2c 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -167,6 +167,8 @@ TEST_F(FormatTestJS, ReservedWordsMethods) {
TEST_F(FormatTestJS, CppKeywords) {
// Make sure we don't mess stuff up because of C++ keywords.
verifyFormat("return operator && (aa);");
+ // .. or QT ones.
+ verifyFormat("slots: Slot[];");
}
TEST_F(FormatTestJS, ES6DestructuringAssignment) {
OpenPOWER on IntegriCloud