[clang] [Clang] Fix LibTooling doc (PR #90441)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 05:54:40 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 10aab63c9cb49d3ddfbe2cf8992de433efeef6f1 a09f0c836a4e8296ccae3c51889f90dea38c304c -- clang/include/clang/Tooling/CommonOptionsParser.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/Tooling/CommonOptionsParser.h b/clang/include/clang/Tooling/CommonOptionsParser.h
index 337e62cd7b..064f6bddb1 100644
--- a/clang/include/clang/Tooling/CommonOptionsParser.h
+++ b/clang/include/clang/Tooling/CommonOptionsParser.h
@@ -54,15 +54,16 @@ namespace tooling {
/// static cl::extrahelp MoreHelp("\nMore help text...\n");
///
/// int main(int argc, const char **argv) {
-/// auto ExpectedParser = CommonOptionsParser::create(argc, argv, MyToolCategory);
-/// if (!ExpectedParser) {
+/// auto ExpectedParser = CommonOptionsParser::create(argc, argv,
+/// MyToolCategory); if (!ExpectedParser) {
/// llvm::errs() << ExpectedParser.takeError();
/// return 1;
/// }
/// CommonOptionsParser& OptionsParser = ExpectedParser.get();
/// ClangTool Tool(OptionsParser.getCompilations(),
/// OptionsParser.getSourcePathList());
-/// return Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>().get());
+/// return
+/// Tool.run(newFrontendActionFactory<clang::SyntaxOnlyAction>().get());
/// }
/// \endcode
class CommonOptionsParser {
``````````
</details>
https://github.com/llvm/llvm-project/pull/90441
More information about the cfe-commits
mailing list