Index: cfe/trunk/include/clang/Tooling/CommonOptionsParser.h =================================================================== --- cfe/trunk/include/clang/Tooling/CommonOptionsParser.h +++ cfe/trunk/include/clang/Tooling/CommonOptionsParser.h @@ -42,6 +42,7 @@ /// \code /// #include "clang/Frontend/FrontendActions.h" /// #include "clang/Tooling/CommonOptionsParser.h" +/// #include "clang/Tooling/Tooling.h" /// #include "llvm/Support/CommandLine.h" /// /// using namespace clang::tooling; @@ -56,8 +57,8 @@ /// int main(int argc, const char **argv) { /// CommonOptionsParser OptionsParser(argc, argv, MyToolCategory); /// ClangTool Tool(OptionsParser.getCompilations(), -/// OptionsParser.getSourcePathListi()); -/// return Tool.run(newFrontendActionFactory()); +/// OptionsParser.getSourcePathList()); +/// return Tool.run(newFrontendActionFactory().get()); /// } /// \endcode class CommonOptionsParser {