[clang-tools-extra] r247812 - [clang-tidy] Ignore spaces in -checks=
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 16 09:16:53 PDT 2015
Author: alexfh
Date: Wed Sep 16 11:16:53 2015
New Revision: 247812
URL: http://llvm.org/viewvc/llvm-project?rev=247812&view=rev
Log:
[clang-tidy] Ignore spaces in -checks=
Modified:
clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
Modified: clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp?rev=247812&r1=247811&r2=247812&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidyDiagnosticConsumer.cpp Wed Sep 16 11:16:53 2015
@@ -130,7 +130,7 @@ static bool ConsumeNegativeIndicator(Str
// Converts first glob from the comma-separated list of globs to Regex and
// removes it and the trailing comma from the GlobList.
static llvm::Regex ConsumeGlob(StringRef &GlobList) {
- StringRef Glob = GlobList.substr(0, GlobList.find(','));
+ StringRef Glob = GlobList.substr(0, GlobList.find(',')).trim();
GlobList = GlobList.substr(Glob.size() + 1);
llvm::SmallString<128> RegexText("^");
StringRef MetaChars("()^$|*+?.[]\\{}");
More information about the cfe-commits
mailing list