diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-01 20:04:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-01 20:04:39 +0000 |
commit | 06900a0ffbf847028b603fb00f55da330db7c92e (patch) | |
tree | c4a340b97d7c43a827510127071312f20b4c27f4 /clang/docs/LibTooling.rst | |
parent | 6f6875835817ee61bdd1eb0bff0603304b28f02b (diff) | |
download | bcm5719-llvm-06900a0ffbf847028b603fb00f55da330db7c92e.tar.gz bcm5719-llvm-06900a0ffbf847028b603fb00f55da330db7c92e.zip |
Update documentation to match recent API change. newFrontendActionFactory now returns a unique_ptr.
llvm-svn: 207789
Diffstat (limited to 'clang/docs/LibTooling.rst')
-rw-r--r-- | clang/docs/LibTooling.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/LibTooling.rst b/clang/docs/LibTooling.rst index 57f207f275c..75ef6a0fe7e 100644 --- a/clang/docs/LibTooling.rst +++ b/clang/docs/LibTooling.rst @@ -99,7 +99,7 @@ our ``FrontendAction`` over some code. For example, to run the // on. Thus, it takes a FrontendActionFactory as parameter. To create a // FrontendActionFactory from a given FrontendAction type, we call // newFrontendActionFactory<clang::SyntaxOnlyAction>(). - int result = Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>()); + int result = Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>().get()); Putting it together --- the first tool ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -136,7 +136,7 @@ version of this example tool is also checked into the clang tree at CommonOptionsParser OptionsParser(argc, argv, MyToolCategory); ClangTool Tool(OptionsParser.getCompilations(), OptionsParser.getSourcePathList()); - return Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>()); + return Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>().get()); } Running the tool on some code |