Re: Where can I find the doxyfile?

From: Bohdan Mart <mart(dot)bogdan(at)gmail(dot)com>
To: postgres(at)coyotebush(dot)net, john(dot)morris(at)crunchydata(dot)com
Cc: 'Stefan Kaltenbrunner' <stefan(at)kaltenbrunner(dot)cc>, pgsql-hackers(at)postgresql(dot)org, 'Bruce Momjian' <bruce(at)momjian(dot)us>
Subject: Re: Where can I find the doxyfile?
Date: 2023-10-06 22:23:41
Message-ID: 4d47f448-30e4-47b2-a46c-c768ca6f0c7f@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 07.10.23 00:29, postgres(at)coyotebush(dot)net wrote:
> Sometime earlier, I created a filter to annotate regular C comments as doxy
> comments. I'll attach it along with a sample doxyfile for running it. Just
> in case it looks useful.
>
> I've never been a big fan of Doxygen, but it seems to have gotten better
> over time. Now that some IDEs display doxy comments on hover, I'm beginning
> to appreciate it.

Thank you for providing this `flex` filter! It is actually useful. I've
tested it on one

file from postures source base, and it actually converted regular

comments to doc-comments! If this filter could be used by official

Doxygen generation of Postgres, it would highly increase quality

of online documentation of Postgres!

My initial idea was to create patches to upstream with changing comments

to documented comments, because current online dock is lacking comments,

but with this filter it would be unneeded, as documentation would be
able to

be generated from current sources!

To illustrate the point:

~~~~~~~~~~~

This function has Doxy style comment

```

src/interfaces/ecpg/compatlib/informix.c
672:/**
673- * initialize the struct, which holds the different forms
674- * of the long value
675- */
676-static int
677-initValue(long lng_val)

```

And it is rendered properly:

https://doxygen.postgresql.org/informix_8c.html#a0dad4c2ee52a831d3aa1bf1133e0e17d

But  function like this

```

src/backend/foreign/foreign.c

 /*
  * get_foreign_server_oid - given a server name, look up the OID
  *
  * If missing_ok is false, throw an error if name not found.  If true,
just
  * return InvalidOid.
  */
 Oid
 get_foreign_server_oid(const char *servername, bool missing_ok)

```

https://doxygen.postgresql.org/foreign_8c.html#a7959c56969be440c25b62c3c98ce2a78

doesn't have rendered documentation.

P.S. Was this original message from postgres(at)coyotebush(dot)net intended to
be sent on John's Morris behalf?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthias van de Meent 2023-10-06 22:30:00 Re: Pre-proposal: unicode normalized text
Previous Message Amit Kapila 2023-10-06 22:16:18 Re: [PoC] pg_upgrade: allow to upgrade publisher nodeHayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>