[Lldb-commits] [lldb] [lldb] Enable SWIG Doxygen Translation (PR #147617)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 8 16:50:30 PDT 2025


https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/147617

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.

>From f7d52fb75c1224197986f75e08a4201431fc9431 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Tue, 8 Jul 2025 16:47:30 -0700
Subject: [PATCH] [lldb] Enable SWIG Doxygen Translation

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.
---
 lldb/bindings/python/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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}



More information about the lldb-commits mailing list