summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-05-06 08:38:24 +0000
committerDaniel Jasper <djasper@google.com>2015-05-06 08:38:24 +0000
commit4d9ec17f1e7dd096c3b04222e169ddb00a7f353d (patch)
treea94bb18a99a4d6a75d13e3db9fea04b196822ea1 /clang/unittests/Format/FormatTest.cpp
parent9d37c4102244d0198deb5fe1af49469714a56c20 (diff)
downloadbcm5719-llvm-4d9ec17f1e7dd096c3b04222e169ddb00a7f353d.tar.gz
bcm5719-llvm-4d9ec17f1e7dd096c3b04222e169ddb00a7f353d.zip
clang-format: Prevent exponential runtime in token annotator.
llvm-svn: 236577
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index e5fe7b5091a..762f92c042c 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -5155,6 +5155,7 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) {
getLLVMStyleWithColumns(60));
verifyFormat("static_assert(is_convertible<A &&, B>::value, \"AAA\");");
verifyFormat("Constructor(A... a) : a_(X<A>{std::forward<A>(a)}...) {}");
+ verifyFormat("< < < < < < < < < < < < < < < < < < < < < < < < < < < < < <");
}
TEST_F(FormatTest, UnderstandsBinaryOperators) {
OpenPOWER on IntegriCloud