@@ -13,6 +13,8 @@ module HsBindgen.Clang.Doxygen (
13
13
, CXCommentKind (.. )
14
14
, clang_Cursor_getParsedComment
15
15
, clang_Comment_getKind
16
+ -- * Comment type 'CXComment_Text'
17
+ , clang_TextComment_getText
16
18
-- * Comment type 'CXComment_InlineCommand'
17
19
, clang_InlineCommandComment_getCommandName
18
20
, clang_InlineCommandComment_getRenderKind
@@ -66,6 +68,21 @@ clang_Comment_getKind comment =
66
68
onHaskellHeap comment $ \ comment' ->
67
69
wrap_Comment_getKind comment'
68
70
71
+ {- ------------------------------------------------------------------------------
72
+ Comment type 'CXComment_Text'
73
+ -------------------------------------------------------------------------------}
74
+
75
+ foreign import capi unsafe " doxygen_wrappers.h wrap_TextComment_getText"
76
+ wrap_TextComment_getText :: R CXComment_ -> W CXString_ -> IO ()
77
+
78
+ -- | Get the text contained in the AST node.
79
+ --
80
+ -- <https://clang.llvm.org/doxygen/group__CINDEX__COMMENT.html#gae9a27e851356181beac36bbff6e638e2>
81
+ clang_TextComment_getText :: CXComment -> IO Text
82
+ clang_TextComment_getText comment =
83
+ onHaskellHeap comment $ \ comment' ->
84
+ preallocate_ $ wrap_TextComment_getText comment'
85
+
69
86
{- ------------------------------------------------------------------------------
70
87
Comment type 'CXComment_InlineCommand'
71
88
-------------------------------------------------------------------------------}
0 commit comments