[clang] [Clang] Fix LibTooling doc (PR #90441)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 29 02:23:19 PDT 2024


================
@@ -133,9 +133,9 @@ version of this example tool is also checked into the clang tree at
   static cl::extrahelp MoreHelp("\nMore help text...\n");
 
   int main(int argc, const char **argv) {
-    CommonOptionsParser OptionsParser(argc, argv, MyToolCategory);
-    ClangTool Tool(OptionsParser.getCompilations(),
-                   OptionsParser.getSourcePathList());
+    auto OptionsParser = CommonOptionsParser::create(argc, argv, MyToolCategory);
----------------
Sirraide wrote:

As above

https://github.com/llvm/llvm-project/pull/90441


More information about the cfe-commits mailing list