[llvm] [CommandLine] Add subcommand groups (PR #75678)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 16:57:35 PST 2023
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 4f1ddf7523c0bbb4075b1682dbe2278080642eee 2b4d3f6e48ff5a449de690acce56f064a4c4c289 -- llvm/include/llvm/Support/CommandLine.h llvm/unittests/Support/CommandLineTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 58969c04f3..95b8111ec5 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -245,6 +245,7 @@ extern ManagedStatic<SubCommand> AllSubCommands;
class SubCommandGroup {
SmallVector<SubCommand *, 4> Subs;
+
public:
SubCommandGroup(std::initializer_list<SubCommand *> IL) : Subs(IL) {}
``````````
</details>
https://github.com/llvm/llvm-project/pull/75678
More information about the llvm-commits
mailing list