From: Jan Kratochvil Date: Tue, 20 Aug 2019 16:07:31 +0000 (+0000) Subject: [clang] Use the new Regex::isValid() with no parameter X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e39526655ee2cfa8a6e4a3ef538049a1aa076532;p=clang [clang] Use the new Regex::isValid() with no parameter Differential Revision: https://reviews.llvm.org/D66463 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369397 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CloneDetection.cpp b/lib/Analysis/CloneDetection.cpp index 74328e8ae6..30d104165c 100644 --- a/lib/Analysis/CloneDetection.cpp +++ b/lib/Analysis/CloneDetection.cpp @@ -153,9 +153,8 @@ void OnlyLargestCloneConstraint::constrain( bool FilenamePatternConstraint::isAutoGenerated( const CloneDetector::CloneGroup &Group) { - std::string Error; if (IgnoredFilesPattern.empty() || Group.empty() || - !IgnoredFilesRegex->isValid(Error)) + !IgnoredFilesRegex->isValid()) return false; for (const StmtSequence &S : Group) {