From 9b8df6ae025ff6553b62f64b8c69f0383dbc8ef2 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 9 Aug 2017 16:00:31 +0000 Subject: [clang-tidy] Ignore newlines in checks list This is a follow up to https://reviews.llvm.org/D30567 where I overlooked that LLVM YAML parser doesn't support multiline literal folding. llvm-svn: 310491 --- .../unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/unittests/clang-tidy') diff --git a/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp b/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp index 0ee800d7fb8..5547f98ffd0 100644 --- a/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp +++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp @@ -74,7 +74,7 @@ TEST(GlobList, WhitespacesAtBegin) { } TEST(GlobList, Complex) { - GlobList Filter("*,-a.*, -b.*, a.1.* ,-a.1.A.*,-..,-...,-..+,-*$, -*qwe* "); + GlobList Filter("*,-a.*, -b.*, \r \n a.1.* ,-a.1.A.*,-..,-...,-..+,-*$, -*qwe* "); EXPECT_TRUE(Filter.contains("aaa")); EXPECT_TRUE(Filter.contains("qqq")); -- cgit v1.2.3