Skip to content

Conversation

@schlatterbeck
Copy link

Doxygen xml has an optional 'array' in parameters, append this to parameters on output.
Fixes #184.

@svenevs
Copy link
Owner

svenevs commented Mar 29, 2023

thank you for the report and fix! I am getting things ready to get a new release out and want to get this in there. i will be adding the test case you have provided to c_maths project, could you please rebase this PR in the meantime? (sorry, it is late, but I definitely want to get you a valid release for your project!!)

@schlatterbeck
Copy link
Author

I've just rebased this, thanks for looking into it!
Ralf

Doxygen xml has an optional 'array' in parameters,
append this to parameters on output.
Fixes svenevs#184.
@svenevs
Copy link
Owner

svenevs commented Apr 20, 2025

Could you please share a code segment with doxygen docs so I can test it out locally? It looks like you've got an easy / low risk fix that's worked for... 2 years... Sorry for never getting to this :/

@schlatterbeck
Copy link
Author

This is the doxygen-generated xml for the function with the weird parameter type (I've left out the detaileddescription) -- the key here is the type PGAInteger(*edge)[2] -- does that help you?
The source code this was generated from is here:
https://github.com/schlatterbeck/pgapack/blob/master/source/integer.c
xml:

      <memberdef kind="function" id="group__standard-api_1ga560aecec81fbc16848e7ea85070715e4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void PGAIntegerSetFixedEdges</definition>
        <argsstring>(PGAContext *ctx, size_t n, PGAInteger(*edge)[2], int symmetric)</argsstring>
        <name>PGAIntegerSetFixedEdges</name>
        <param>
          <type><ref refid="structPGAContext" kindref="compound">PGAContext</ref> *</type>
          <declname>ctx</declname>
        </param>
        <param>
          <type>size_t</type>
          <declname>n</declname>
        </param>
        <param>
          <type><ref refid="group__const-datatype_1ga1b0e84726e05cb1bfece3064d78e45ae" kindref="member">PGAInteger</ref>(*)</type>
          <declname>edge</declname>
          <array>[2]</array>
        </param>
        <param>
          <type>int</type>
          <declname>symmetric</declname>
        </param>
        <briefdescription>
<para>Set edges that have to be present. </para>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="source/integer.c" line="1542" column="6" bodyfile="source/integer.c" bodystart="1543" bodyend="1614"/>
      </memberdef>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exhale does not find functions with weird data types

2 participants