Unverified Commit de6b2b9d authored by Kohei Asano's avatar Kohei Asano Committed by GitHub
Browse files

[Clang][Docs] use CommonOptionsParser::create instead of protected constructor...

[Clang][Docs] use CommonOptionsParser::create instead of protected constructor on libTooling tutorial (NFC) (#70427)

This patch fixes the code example on CommonOptionParser on
https://intel.github.io/llvm-docs/clang/LibTooling.html

CommonOptionParser's constructor is protected, and we can use
`CommonOptionParser::create` instead of that.
It seems like the LibASTMatcher tutorial already uses that.
https://clang.llvm.org/docs/LibASTMatchersTutorial.html



---------

Co-authored-by: default avatarSirraide <aeternalmail@gmail.com>
parent 8e17c848
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment