aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/ClangTidyDiagnosticConsumer.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-08-09 16:00:31 +0000
committerAlexander Kornienko <alexfh@google.com>2017-08-09 16:00:31 +0000
commit2294ef829546b34ec01581c0bafee9e376631dcc (patch)
treeb1dc26f539f5455dc4707cda1493036f82d5c11a /clang-tidy/ClangTidyDiagnosticConsumer.cpp
parent80c2bcefe9c90722f5e65444a7651b848d69bd89 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@310491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidyDiagnosticConsumer.cpp')
-rw-r--r--clang-tidy/ClangTidyDiagnosticConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy/ClangTidyDiagnosticConsumer.cpp b/clang-tidy/ClangTidyDiagnosticConsumer.cpp
index 07933113..44f78b8a 100644
--- a/clang-tidy/ClangTidyDiagnosticConsumer.cpp
+++ b/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -115,7 +115,7 @@ ClangTidyError::ClangTidyError(StringRef CheckName,
// Returns true if GlobList starts with the negative indicator ('-'), removes it
// from the GlobList.
static bool ConsumeNegativeIndicator(StringRef &GlobList) {
- GlobList = GlobList.trim(' ');
+ GlobList = GlobList.trim(" \r\n");
if (GlobList.startswith("-")) {
GlobList = GlobList.substr(1);
return true;