Author: dergachev Date: Tue Jul 26 14:05:22 2016 New Revision: 276791 URL: http://llvm.org/viewvc/llvm-project?rev=276791&view=rev Log: [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. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CloneChecker.cpp Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CloneChecker.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/CloneChecker.cpp?rev=276791&r1=276790&r2=276791&view=diff ============================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/CloneChecker.cpp (original) +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CloneChecker.cpp Tue Jul 26 14:05:22 2016 @@ -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(cons 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::checkEndOfTranslation SourceManager &SM = BR.getSourceManager(); std::vector<CloneDetector::CloneGroup> CloneGroups; - CloneDetector.findClones(CloneGroups, MinComplexity); + Detector.findClones(CloneGroups, MinComplexity); DiagnosticsEngine &DiagEngine = Mgr.getDiagnostic(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits