[PATCH] D12967: fix comments

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 06:03:35 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL248090: [clang-tidy] Fix example comments. (authored by alexfh).

Changed prior to commit:
  http://reviews.llvm.org/D12967?vs=35091&id=35164#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D12967

Files:
  cfe/trunk/include/clang/Tooling/CommonOptionsParser.h

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<clang::SyntaxOnlyAction>());
+///                  OptionsParser.getSourcePathList());
+///   return Tool.run(newFrontendActionFactory<SyntaxOnlyAction>().get());
 /// }
 /// \endcode
 class CommonOptionsParser {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12967.35164.patch
Type: text/x-patch
Size: 1008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150919/8a8a4638/attachment.bin>


More information about the cfe-commits mailing list