summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/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
commit9b8df6ae025ff6553b62f64b8c69f0383dbc8ef2 (patch)
tree8679513f19e94e80309556e389bb0a84de32cb9c /clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
parent6f80d6b46f394f033a290aa5a2ecd32784b9e786 (diff)
downloadbcm5719-llvm-9b8df6ae025ff6553b62f64b8c69f0383dbc8ef2.tar.gz
bcm5719-llvm-9b8df6ae025ff6553b62f64b8c69f0383dbc8ef2.zip
[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
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
index 07933113e00..44f78b8ac74 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
+++ b/clang-tools-extra/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;
OpenPOWER on IntegriCloud