[Lldb-commits] [lldb] [lldb] Enable SWIG Doxygen Translation (PR #147617)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 8 16:51:03 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Jonas Devlieghere (JDevlieghere)
<details>
<summary>Changes</summary>
Enable SWIG support for translating Doxygen comments found in interface and header files into a target language's normal documentation language. This feature was introduced in SWIG 4.0 and currently only supports Python (and Java). Hand-written documentation still takes precedence.
---
Full diff: https://github.com/llvm/llvm-project/pull/147617.diff
1 Files Affected:
- (modified) lldb/bindings/python/CMakeLists.txt (+1)
``````````diff
diff --git a/lldb/bindings/python/CMakeLists.txt b/lldb/bindings/python/CMakeLists.txt
index 69306a384e0b1..ef6def3f26872 100644
--- a/lldb/bindings/python/CMakeLists.txt
+++ b/lldb/bindings/python/CMakeLists.txt
@@ -14,6 +14,7 @@ add_custom_command(
DEPENDS lldb-sbapi-dwarf-enums
COMMAND ${SWIG_EXECUTABLE}
${SWIG_COMMON_FLAGS}
+ -doxygen
-I${CMAKE_CURRENT_SOURCE_DIR}
${SWIG_EXTRA_FLAGS}
-outdir ${CMAKE_CURRENT_BINARY_DIR}
``````````
</details>
https://github.com/llvm/llvm-project/pull/147617
More information about the lldb-commits
mailing list