[lld] [llvm] [Option] Store visibility-specific help text out of line (PR #202653)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 07:05:11 PDT 2026
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 origin/main HEAD --extensions h,cpp -- lld/MachO/DriverUtils.cpp lld/MinGW/Driver.cpp lld/wasm/Driver.cpp llvm/include/llvm/Option/OptTable.h llvm/include/llvm/Option/Option.h llvm/lib/Option/OptTable.cpp llvm/unittests/Option/OptionParsingTest.cpp llvm/utils/TableGen/OptionParserEmitter.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/OptionParserEmitter.cpp b/llvm/utils/TableGen/OptionParserEmitter.cpp
index 581fc1850..b0a2c9728 100644
--- a/llvm/utils/TableGen/OptionParserEmitter.cpp
+++ b/llvm/utils/TableGen/OptionParserEmitter.cpp
@@ -209,8 +209,7 @@ struct HelpTextVariant {
StringRef Text;
};
-static std::optional<HelpTextVariant>
-getHelpTextVariant(const Record &R) {
+static std::optional<HelpTextVariant> getHelpTextVariant(const Record &R) {
const unsigned MaxVisibilityPerHelp = 2;
const unsigned MaxVisibilityHelp = 1;
@@ -242,8 +241,9 @@ struct IndexedHelpTextVariant {
HelpTextVariant Variant;
};
-static void emitHelpTextVariants(
- raw_ostream &OS, ArrayRef<IndexedHelpTextVariant> HelpTextVariants) {
+static void
+emitHelpTextVariants(raw_ostream &OS,
+ ArrayRef<IndexedHelpTextVariant> HelpTextVariants) {
if (HelpTextVariants.empty())
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/202653
More information about the llvm-commits
mailing list