Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Doxygen in C -- Avoiding repeat documentation

Doxygen in C -- Avoiding repeat documentation

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheDude89
    wrote on 4 Feb 2013, 21:28 last edited by
    #1

    So I have a C program that is split into multiple objects. My makefile looks like this:

    <b>all: fadingsim.o jakesimulator.o dspmath_fp.o
    g++ fadingsim.o jakesimulator.o dspmath_fp.o -o fadingsim

    #Main#
    fadingsim.o: fadingsim.c constants.h
    g++ -c -Wall fadingsim.c

    jakesimulator.o: jakesimulator.c jakesimulator.h constants.h
    g++ -c -Wall jakesimulator.c

    dspmath_fp.o: dspmath_fp.c dspmath_fp.h constants.h
    g++ -c -Wall dspmath_fp.c</b>

    Now, in my main function I have:

    <b>
    extern void getMagnitude(double h[], double hmag[], int len, int normalize);
    extern double getPMF(double x[], int len, double pmf[], int step);</b>

    These functions are declared in the dspmath_fp.h file and defined in dspmath_fp.c . When I generate the documentation (as a Latex document), I would like it so that the file reference for the main function does not include the externs as functions in the file. Rather, I would like these functions to ONLY be documented in dspmath_fp.c, and nowhere else.

    As I'm doing it now, by placing file identifiers on each file and doing in body function documentation, these three functions get repeated in the file reference for dspmath, the main file, and anywhere else that needs to call them.

    How can separate the documentation?

    Thanks!!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 5 Feb 2013, 07:34 last edited by
      #2

      Usually when a declaration (and definition) is not doxy-commented, it does not get included. The only tag to made to explicitly hide things is \hideinitialiser.

      What I think you can try (not sure if it will work as you expect) is either "memberof":http://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdmemberof tag (point it to the original class) or "addtogroup":http://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdaddtogroup (create some dummy group as "garbage bin").

      (Z(:^

      1 Reply Last reply
      0

      1/2

      4 Feb 2013, 21:28

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved