diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-07-26 19:05:22 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-07-26 19:05:22 +0000 |
commit | 96034ca10eae091749974687afb4f1888aab669d (patch) | |
tree | 4f5d5637830831eda663fb957b3270c17fda4b0d /clang | |
parent | b567b628b781e8bf9cc411aedbdbc1a3705cfd91 (diff) | |
download | bcm5719-llvm-96034ca10eae091749974687afb4f1888aab669d.tar.gz bcm5719-llvm-96034ca10eae091749974687afb4f1888aab669d.zip |
[analyzer] Hotfix for build failure due to declaration shadowing in r276782.
CloneDetector member variable is shadowing the class with the same name,
which causes build failures on some platforms.
llvm-svn: 276791
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp index 5bd4f6b6a94..87c813df528 100644 --- a/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp @@ -26,7 +26,7 @@ using namespace ento; namespace { class CloneChecker : public Checker<check::ASTCodeBody, check::EndOfTranslationUnit> { - mutable CloneDetector CloneDetector; + mutable CloneDetector Detector; public: void checkASTCodeBody(const Decl *D, AnalysisManager &Mgr, @@ -41,7 +41,7 @@ void CloneChecker::checkASTCodeBody(const Decl *D, AnalysisManager &Mgr, BugReporter &BR) const { // Every statement that should be included in the search for clones needs to // be passed to the CloneDetector. - CloneDetector.analyzeCodeBody(D); + Detector.analyzeCodeBody(D); } void CloneChecker::checkEndOfTranslationUnit(const TranslationUnitDecl *TU, @@ -58,7 +58,7 @@ void CloneChecker::checkEndOfTranslationUnit(const TranslationUnitDecl *TU, SourceManager &SM = BR.getSourceManager(); std::vector<CloneDetector::CloneGroup> CloneGroups; - CloneDetector.findClones(CloneGroups, MinComplexity); + Detector.findClones(CloneGroups, MinComplexity); DiagnosticsEngine &DiagEngine = Mgr.getDiagnostic(); |