]> granicus.if.org Git - clang/commitdiff
[clang] Use the new Regex::isValid() with no parameter
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 20 Aug 2019 16:07:31 +0000 (16:07 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 20 Aug 2019 16:07:31 +0000 (16:07 +0000)
Differential Revision: https://reviews.llvm.org/D66463

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369397 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CloneDetection.cpp

index 74328e8ae67fdb519748127080c14825ff3ccff3..30d104165cc54814cccc013769c4e3ff17f4314d 100644 (file)
@@ -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) {