Re: [PATCH v4 19/19] scripts: apibuild: add parsing variable's comments

2022-04-26 Thread Andrea Bolognani
On Fri, Apr 22, 2022 at 09:23:44PM +0200, Victor Toso wrote: > +def cleanup_code_comment(self, comment: str, type_name="") -> str: > if not isinstance(comment, str) or comment == "": > return "" > > lines = comment.splitlines(True) > + > +# If type_name is

[PATCH v4 19/19] scripts: apibuild: add parsing variable's comments

2022-04-22 Thread Victor Toso
scripts/apibuild.py did not consider exporting external variable's comments into the XML API. This commits fixes that. Noe that the way that CParser is designed, it is currently possible to lose a parsed comment when parsing other fields as self.comment in several places. I've added a comment to h