[Lldb-commits] [lldb] [LLDB][Docs] List available settings (PR #168245)

via lldb-commits lldb-commits at lists.llvm.org
Sat Nov 15 14:09:42 PST 2025


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 -- lldb/tools/lldb-test/DocumentationGenerator.cpp lldb/tools/lldb-test/DocumentationGenerator.h lldb/include/lldb/Interpreter/OptionValueEnumeration.h lldb/include/lldb/Interpreter/OptionValueFormatEntity.h lldb/include/lldb/Interpreter/OptionValueProperties.h lldb/include/lldb/Interpreter/OptionValueRegex.h lldb/source/Interpreter/OptionValueFormatEntity.cpp lldb/tools/lldb-test/lldb-test.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/lldb/tools/lldb-test/DocumentationGenerator.cpp b/lldb/tools/lldb-test/DocumentationGenerator.cpp
index f8b24fdda..a089a7207 100644
--- a/lldb/tools/lldb-test/DocumentationGenerator.cpp
+++ b/lldb/tools/lldb-test/DocumentationGenerator.cpp
@@ -102,8 +102,8 @@ void printMdOptionFields(Stream &os, const OptionValue &val) {
        << '\n';
     break;
   case OptionValue::eTypeFormatEntity:
-    os << ":default: "
-       << val.GetAsFormatEntity()->GetEscapedDefaultFormatStr() << '\n';
+    os << ":default: " << val.GetAsFormatEntity()->GetEscapedDefaultFormatStr()
+       << '\n';
     break;
   case OptionValue::eTypeLanguage:
     os << ":default: "
@@ -143,8 +143,7 @@ void printMdOptionFields(Stream &os, const OptionValue &val) {
   case OptionValue::eTypeString: {
     llvm::StringRef default_val = val.GetAsString()->GetDefaultValueAsRef();
     if (!default_val.empty())
-      os << ":default: " << val.GetAsString()->GetDefaultValueAsRef()
-         << '\n';
+      os << ":default: " << val.GetAsString()->GetDefaultValueAsRef() << '\n';
   } break;
   default:
     break;
@@ -203,9 +202,9 @@ void printMdOptionProperties(Stream &os, uint8_t level, llvm::StringRef name,
 int lldb_private::generateMarkdownDocs(Debugger &dbg,
                                        llvm::StringRef output_dir) {
   std::string output_file = (output_dir + "/settings.md").str();
-  StreamFile os(output_file.c_str(),
-               File::eOpenOptionWriteOnly | File::eOpenOptionCanCreate |
-                   File::eOpenOptionTruncate);
+  StreamFile os(output_file.c_str(), File::eOpenOptionWriteOnly |
+                                         File::eOpenOptionCanCreate |
+                                         File::eOpenOptionTruncate);
   os << SETTINGS_HEADER;
   printMdOptionProperties(os, 0, "", *dbg.GetValueProperties());
   return 0;

``````````

</details>


https://github.com/llvm/llvm-project/pull/168245


More information about the lldb-commits mailing list