From 104b6feb10801a57651bb01b553e289b065e6a9a Mon Sep 17 00:00:00 2001 From: Leslie Zhai Date: Tue, 20 Jun 2017 06:44:46 +0000 Subject: [analyzer] Teach CloneDetection about Qt Meta-Object Compiler to filter auto generated files Reviewers: v.g.vassilev, teemperor Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D34353 llvm-svn: 305774 --- clang/lib/Analysis/CloneDetection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis/CloneDetection.cpp') diff --git a/clang/lib/Analysis/CloneDetection.cpp b/clang/lib/Analysis/CloneDetection.cpp index 3b44fab9d74..e86293a1dd0 100644 --- a/clang/lib/Analysis/CloneDetection.cpp +++ b/clang/lib/Analysis/CloneDetection.cpp @@ -366,7 +366,7 @@ void OnlyLargestCloneConstraint::constrain( } } -bool AutoGeneratedCloneConstraint::isAutoGenerated(const CloneDetector::CloneGroup &Group) { +bool FilenamePatternConstraint::isAutoGenerated(const CloneDetector::CloneGroup &Group) { std::string Error; if (IgnoredFilesPattern.empty() || Group.empty() || !IgnoredFilesRegex->isValid(Error)) -- cgit v1.2.3