From 698dcf1043cd304631b84589adf9929a90548114 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Mon, 28 Jun 2021 17:40:37 +0000 Subject: [PATCH] [doxygen] Handle structures git-svn-id: svn://kolibrios.org@8958 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/asmxygen.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index 3bc98df666..5c7a85734f 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -1483,8 +1483,13 @@ class AsmStruct(AsmElement): doxycomment += self.comment if '@brief' not in doxycomment: doxycomment = '@brief ' + doxycomment + doxycomment += '\n' # Build declaration - declaration = f"struct {self.name}" + " {};" + declaration = f"struct {self.name}" + " {\n" + for member in self.members: + if type(member) == AsmVariable: + declaration += f'\t{member.type} {member.name}; /**< {member.comment} */\n' + declaration += '};' # Emit this super().emit(dest, doxycomment, declaration)