[clang-tidy] Ignore spaces in -checks=

llvm-svn: 247812
This commit is contained in:
Alexander Kornienko 2015-09-16 16:16:53 +00:00
parent 19e3889dba
commit c7a6b40d10
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ static bool ConsumeNegativeIndicator(StringRef &GlobList) {
// 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("()^$|*+?.[]\\{}");