Try to fix the build. newFrontendActionFactory was changed to return a unique_ptr.

llvm-svn: 207407
This commit is contained in:
Benjamin Kramer 2014-04-28 10:06:50 +00:00
parent 1fcee98ddc
commit fb68e640d2
4 changed files with 6 additions and 5 deletions

View File

@ -469,7 +469,7 @@ int main(int argc, const char **argv) {
if (FinalSyntaxCheck) {
ClangTool SyntaxTool(*Compilations, SourcePaths);
if (SyntaxTool.run(newFrontendActionFactory<SyntaxOnlyAction>()) != 0)
if (SyntaxTool.run(newFrontendActionFactory<SyntaxOnlyAction>().get()) != 0)
return 1;
}

View File

@ -233,5 +233,5 @@ int main(int argc, const char **argv) {
callee(methodDecl(hasName(StringCStrMethod))),
on(id("arg", expr())))))),
&Callback);
return Tool.runAndSave(newFrontendActionFactory(&Finder));
return Tool.runAndSave(newFrontendActionFactory(&Finder).get());
}

View File

@ -103,5 +103,5 @@ int main(int argc, const char **argv) {
// Use Finder.addMatcher(...) to define the patterns in the AST that you
// want to match against. You are not limited to just one matcher!
return Tool.run(newFrontendActionFactory(&Finder));
return Tool.run(newFrontendActionFactory(&Finder).get());
}

View File

@ -153,7 +153,8 @@ TEST(Transform, Timings) {
// handleEndSource() calls to it.
CallbackForwarder Callbacks(T);
Tool.run(clang::tooling::newFrontendActionFactory(&Factory, &Callbacks));
Tool.run(
clang::tooling::newFrontendActionFactory(&Factory, &Callbacks).get());
EXPECT_TRUE(Factory.Called);
Transform::TimingVec::const_iterator I = T.timing_begin();
@ -271,7 +272,7 @@ TEST(Transform, isFileModifiable) {
DummyTransform T("dummy", Options);
MatchFinder Finder;
Finder.addMatcher(varDecl().bind("decl"), new ModifiableCallback(T));
Tool.run(tooling::newFrontendActionFactory(&Finder));
Tool.run(tooling::newFrontendActionFactory(&Finder).get());
}
TEST(VersionTest, Interface) {