summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CloneDetection.cpp
diff options
context:
space:
mode:
authorLeslie Zhai <lesliezhai@llvm.org.cn>2017-06-20 06:44:46 +0000
committerLeslie Zhai <lesliezhai@llvm.org.cn>2017-06-20 06:44:46 +0000
commit104b6feb10801a57651bb01b553e289b065e6a9a (patch)
tree2389a70fbd2a624d87db8db9d2272420adc770c4 /clang/lib/Analysis/CloneDetection.cpp
parent4dfcec6b62629e9d20d38dd8f8a7bc5f60a1aa8a (diff)
downloadbcm5719-llvm-104b6feb10801a57651bb01b553e289b065e6a9a.tar.gz
bcm5719-llvm-104b6feb10801a57651bb01b553e289b065e6a9a.zip
[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
Diffstat (limited to 'clang/lib/Analysis/CloneDetection.cpp')
-rw-r--r--clang/lib/Analysis/CloneDetection.cpp2
1 files changed, 1 insertions, 1 deletions
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))
OpenPOWER on IntegriCloud