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

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


================
@@ -71,9 +71,9 @@ and automatic location of the compilation database using source files paths.
   int main(int argc, const char **argv) {
     // CommonOptionsParser constructor will parse arguments and create a
     // CompilationDatabase.  In case of error it will terminate the program.
-    CommonOptionsParser OptionsParser(argc, argv, MyToolCategory);
+    auto OptionsParser = CommonOptionsParser::create(argc, argv, MyToolCategory);
----------------
Sirraide wrote:

Also, `->` needs to be replaced with `.` again below.

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


More information about the cfe-commits mailing list