Coder Social home page Coder Social logo

[doxygenfunction: Cannot find function] When header file function declaration comment out with DOXYGEN_SHOULD_SKIP_THIS about exhale HOT 2 CLOSED

svenevs avatar svenevs commented on September 22, 2024
[doxygenfunction: Cannot find function] When header file function declaration comment out with DOXYGEN_SHOULD_SKIP_THIS

from exhale.

Comments (2)

svenevs avatar svenevs commented on September 22, 2024

Hi @Visit-Learn,

I am new for this tool, I am not sure that I can ask question here or not.

Sorry for the delay, questions are welcome! Development is slow right now though :S

Edit: also, thanks for a detailed issue report -- was easy to reproduce the problem which helped eventually finding it 🙂

This behavior seems to be a feature of breathe, I wasn't aware of this until now. Apparently the .. doxygenfunction directive by default ignores source files. They will create a filter finder which ultimately rage quits for implementation files.

With your current setup, you would need to set breathe_implementation_filename_extensions to trick it into documenting the .c files the way you want in your conf.py:

# example ... could also add '.h'
breathe_implementation_filename_extensions = []

That will succeed in building the docs. Some notes:

  1. By default, using the exhale stdin approach, DOXYGEN_SHOULD_SKIP_THIS is already defined in addition to DOXYGEN_DOCUMENTATION_BUILD. It doesn't hurt to add it on that last line PREDEFINED += DOXYGEN_SHOULD_SKIP_THIS), but in this case it was a red herring ha!

  2. You're kind of fighting the conventions here. Typically documentation is added in the .h files, not in the .c files. So, if it's possible and acceptable for your circumstances, the ideal scenario would be to avoid documenting C files at all. INPUT = ../include and FILE_PATTERNS = *.h (though since your code base is separated, it seems you may not need to override FILE_PATTERNS -- just depends on what files you have where). Doing this means that

    • You won't need to mess with breathe_implementation_filename_extensions
    • You don't need all this extra #if !defined(DOXYGEN_DOCUMENTATION_BUILD) everywhere.

Does that make sense?

from exhale.

svenevs avatar svenevs commented on September 22, 2024

Going to close this as resolved, please re-open if the above suggestions didn't work!

from exhale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.