GBuella created this revision. GBuella added reviewers: alexfh, george.karpenkov. Herald added a subscriber: cfe-commits.
`ninja-build check-clang` failed using GCC 4.8.5 with: unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp:64:12: error: could not convert ‘AnalysisConsumer’ from ‘std::unique_ptr<clang::ento::AnalysisASTConsumer>’ to ‘std::unique_ptr<clang::ASTConsumer>’ return AnalysisConsumer; ^ Repository: rC Clang https://reviews.llvm.org/D48708 Files: unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp Index: unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp =================================================================== --- unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp +++ unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp @@ -61,7 +61,7 @@ AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) { Registry.addChecker<CustomChecker>("custom.CustomChecker", "Description"); }); - return AnalysisConsumer; + return std::unique_ptr<ASTConsumer>(AnalysisConsumer.release()); } };
Index: unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp =================================================================== --- unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp +++ unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp @@ -61,7 +61,7 @@ AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) { Registry.addChecker<CustomChecker>("custom.CustomChecker", "Description"); }); - return AnalysisConsumer; + return std::unique_ptr<ASTConsumer>(AnalysisConsumer.release()); } };
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits