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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits