Using Doxygen \ includedoc

The Doxygen documentation says about \ includeoc: "This command works the same as \ includeoc , but it will include the contents of the file as if it were in the place where this command is called."

So I set up EXAMPLE_PATH = includepages(Doxyfile) and created a file with a name test.doxin the includepagesfolder includepages.

To ensure proper use, this content test.dox:

/*!
 *  THIS IS A TEST
 */
 THIS IS AN OTHER TEST

Here is how I include this page:

 *  \include test.dox
 *
 *  \includedoc test.dox

This will lead to:

Screenshot Doxygen result

As you can see, it \include test.doxworks as expected. Not test.doxa single part of the file test.dox( THIS IS AN OTHER TEST). But instead of typing, THIS IS A TEST \includedoc test.doxprints the file name? I can’t understand what’s wrong.


(SuSE Leap 42.2)

# uname -a
Linux twa 4.4.74-18.20-default #1 SMP Fri Jun 30 19:01:19 UTC 2017 (b5079b8) x86_64 x86_64 x86_64 GNU/Linux
# doxygen --version
1.8.11
# dot -V
dot - graphviz version 2.38.0 (20140413.2041)
+2
1

Doxygen.

Doxygen 1.8.13 Linux:

wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.13.src.tar.gz
tar xvf doxygen-1.8.13.src.tar.gz 
cd doxygen-1.8.13/
cmake -G "Unix Makefiles"
make
sudo mkdir /opt/doxygen-1.8.13
cp bin/doxygen /opt/doxygen-1.8.13

- , , doxygen, , /opt/doxygen-1.8.13/doxygen.

0

Source: https://habr.com/ru/post/1608544/


All Articles