r369397 - [clang] Use the new Regex::isValid() with no parameter

Jan Kratochvil via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 20 09:07:31 PDT 2019


Author: jankratochvil
Date: Tue Aug 20 09:07:31 2019
New Revision: 369397

URL: http://llvm.org/viewvc/llvm-project?rev=369397&view=rev
Log:
[clang] Use the new Regex::isValid() with no parameter

Differential Revision: https://reviews.llvm.org/D66463

Modified:
    cfe/trunk/lib/Analysis/CloneDetection.cpp

Modified: cfe/trunk/lib/Analysis/CloneDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CloneDetection.cpp?rev=369397&r1=369396&r2=369397&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CloneDetection.cpp (original)
+++ cfe/trunk/lib/Analysis/CloneDetection.cpp Tue Aug 20 09:07:31 2019
@@ -153,9 +153,8 @@ void OnlyLargestCloneConstraint::constra
 
 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) {




More information about the cfe-commits mailing list