Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
cc526d85
Commit
cc526d85
authored
15 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
fix include statements in doxygen output, update bestpractice to tell
how it works [[Imported from SVN: r5591]]
parent
a2428b0c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/doxygen/Doxyfile.in
+3
-3
3 additions, 3 deletions
doc/doxygen/Doxyfile.in
doc/doxygen/bestpractice.wml
+38
-1
38 additions, 1 deletion
doc/doxygen/bestpractice.wml
with
41 additions
and
4 deletions
doc/doxygen/Doxyfile.in
+
3
−
3
View file @
cc526d85
...
...
@@ -124,7 +124,7 @@ STRIP_FROM_PATH =
# definition is used. Otherwise one should specify the include paths that
# are normally passed to the compiler using the -I flag.
STRIP_FROM_INC_PATH =
STRIP_FROM_INC_PATH =
@abs_top_srcdir@
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
# (but less readable) file names. This can be useful is your file systems
...
...
@@ -462,8 +462,8 @@ WARN_LOGFILE =
INPUT = @srcdir@/mainpage \
@srcdir@/modules \
@top_srcdir@/common/modules \
@top_srcdir@/common
@top_srcdir@/
dune/
common/modules \
@top_srcdir@/
dune/
common
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
...
...
This diff is collapsed.
Click to expand it.
doc/doxygen/bestpractice.wml
+
38
−
1
View file @
cc526d85
...
...
@@ -15,6 +15,43 @@
<h2>
usefull tips when documenting your code
</h2>
<h3>
correct #include statements
</h3>
<p>
Doxygen tends to strip the while path from the include statements. In
Dune we usually require include statements like
<pre>
\#include
<
dune/common/fvector.hh
>
</pre>
Doxygen will just write
<pre>
\#include
<
fvector.hh
>
</pre>
In order to trick/force Doxygen to write the correct include statement
you have to adjust your Doxyfile.in as follows:
</p>
<ol>
<li>
<p>
use
<tt>
@top_srcdir@/dune/...
</tt>
to point to the include
directories:
</p>
<pre>
INPUT = @srcdir@/mainpage \
@srcdir@/modules \
@top_srcdir@/dune/common/modules \
@top_srcdir@/dune/common
</pre>
</li>
<li>
<p>
set the
<tt>
STRIP_FROM_INC_PATH
</tt>
to point to your
abs_top_srcdir:
</p>
<pre>
STRIP_FROM_INC_PATH = @abs_top_srcdir@
</pre>
</li>
</ol>
<h3>
\copydoc
<
link-object
>
</h3>
<p>
...
...
@@ -57,4 +94,4 @@ source files and by the include statements in these source files.</p>
source files are parsed. Entering a
<tt>
@defgroup
</tt>
statement makes
this module known to doxygen so that all modules mentioned in the
<tt>
modules
</tt>
file are listed first and in the order they are
defined there.
</p>
\ No newline at end of file
defined there.
</p>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment