Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen: Exclude undocumented files

Tags:

doxygen

I have a framework which I am extending. There are some source folders which contain quite a lot of files and I want to document my work (especially those files which come from me) using doxygen.

Any file I am documenting contians a header:

/**
 * @file my_file.c
 * @author Stefan F.
 * @date 28.05.2014
 *
 * @brief This file is awesome!
 */

Can I somehow tell doxygen to NOT include files without such a header?

I have already set

EXTRACT_ALL            = NO

Files which don't have a doxygen header are not generated but they are still listed in the file list.

Does anyone know how to configure doxygen to get that behavior?

like image 903
Stefan Falk Avatar asked Apr 18 '26 18:04

Stefan Falk


1 Answers

I'm not aware of any part of Doxygen that will do exactly what you are looking for, however, the simplest way to achieve your aim is simply to only list the files you want doxygenning in the doxyfile INPUT line.

INPUT = my_file_1.cpp myfile2.cpp moreofmyfiles/etc.cpp

(Beware it's a space separated list.)

Depending on your folder structure you may need to set RECURSIVE = NO

If it's your own personal project and you can name your file myname_file.cpp you could use FILE_PATTERNS to select only those files beginning "myname_* - but I'm expecting that's not a viable set of circumstances.

like image 69
Cheeseminer Avatar answered Apr 22 '26 09:04

Cheeseminer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!