Before reading further, make sure EXTRACT_ALL set to NO .
I'm not a fan of the next solution, but it works. Use the Doxygen Preprocessor
#ifdef PROJECT_NO_DOC void foo(int a); #endif void bar(int b);
Please note that in their documents you should set the PREDEFINED macro, but at least in my version of doxygen this was not required. Their docs indicate to do it this way, set a predefined macro in the configuration to do it for you
#ifndef DOXYGEN_SHOULD_SKIP_THIS #endif
around the blocks to be hidden and put:
PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS
in the configuration file, all blocks should be skipped by doxygen until
ENABLE_PREPROCESSING = YES
There are other methods, but they have additional restrictions, i.e. EXTRACT_STATIC To prevent a static method from EXTRACT_STATIC in your public documents, you can set EXTRACT_STATIC NO to the parameter.
Harry
source share