Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
eed0c89f
Commit
eed0c89f
authored
Nov 26, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 692004 - show includes for free functions
parent
727e5e1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
config.xml
src/config.xml
+7
-0
memberdef.cpp
src/memberdef.cpp
+42
-0
memberdef.h
src/memberdef.h
+1
-0
No files found.
src/config.xml
View file @
eed0c89f
...
@@ -882,6 +882,13 @@ Go to the <a href="commands.html">next</a> section or return to the
...
@@ -882,6 +882,13 @@ Go to the <a href="commands.html">next</a> section or return to the
]]>
]]>
</docs>
</docs>
</option>
</option>
<option
type=
'bool'
id=
'SHOW_GROUPED_MEMB_INC'
defval=
'0'
>
<![CDATA[
If the SHOW_GROUPED_MEMB_INC tag is set to \c YES then Doxygen
will add for each grouped member an include statement to the documentation,
telling the reader which file to include in order to use the member.
]]>
</option>
<option
type=
'bool'
id=
'FORCE_LOCAL_INCLUDES'
defval=
'0'
>
<option
type=
'bool'
id=
'FORCE_LOCAL_INCLUDES'
defval=
'0'
>
<docs>
<docs>
<![CDATA[
<![CDATA[
...
...
src/memberdef.cpp
View file @
eed0c89f
...
@@ -2382,6 +2382,46 @@ void MemberDef::_writeEnumValues(OutputList &ol,Definition *container,
...
@@ -2382,6 +2382,46 @@ void MemberDef::_writeEnumValues(OutputList &ol,Definition *container,
}
}
}
}
void
MemberDef
::
_writeGroupInclude
(
OutputList
&
ol
,
bool
inGroup
)
{
// only write out the include file if this is not part of a class or file
// definition
static
bool
showGroupedMembInc
=
Config_getBool
(
"SHOW_GROUPED_MEMB_INC"
);
FileDef
*
fd
=
getFileDef
();
QCString
nm
;
if
(
fd
)
nm
=
getFileDef
()
->
docName
();
if
(
inGroup
&&
fd
&&
showGroupedMembInc
&&
!
nm
.
isEmpty
())
{
ol
.
startParagraph
();
ol
.
startTypewriter
();
SrcLangExt
lang
=
getLanguage
();
bool
isIDLorJava
=
lang
==
SrcLangExt_IDL
||
lang
==
SrcLangExt_Java
;
if
(
isIDLorJava
)
{
ol
.
docify
(
"import "
);
}
else
{
ol
.
docify
(
"#include "
);
}
if
(
isIDLorJava
)
ol
.
docify
(
"
\"
"
);
else
ol
.
docify
(
"<"
);
if
(
fd
&&
fd
->
isLinkable
())
{
ol
.
writeObjectLink
(
fd
->
getReference
(),
fd
->
getOutputFileBase
(),
fd
->
anchor
(),
nm
);
}
else
{
ol
.
docify
(
nm
);
}
if
(
isIDLorJava
)
ol
.
docify
(
"
\"
"
);
else
ol
.
docify
(
">"
);
ol
.
endTypewriter
();
ol
.
endParagraph
();
}
}
/*! Writes the "detailed documentation" section of this member to
/*! Writes the "detailed documentation" section of this member to
* all active output formats.
* all active output formats.
...
@@ -2711,6 +2751,8 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
...
@@ -2711,6 +2751,8 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
ol
.
endDoxyAnchor
(
cfname
,
memAnchor
);
ol
.
endDoxyAnchor
(
cfname
,
memAnchor
);
ol
.
startIndent
();
ol
.
startIndent
();
_writeGroupInclude
(
ol
,
inGroup
);
/* write multi-line initializer (if any) */
/* write multi-line initializer (if any) */
if
(
hasMultiLineInitializer
()
if
(
hasMultiLineInitializer
()
//initLines>0 && ((initLines<maxInitLines && userInitLines==-1) // implicitly enabled
//initLines>0 && ((initLines<maxInitLines && userInitLines==-1) // implicitly enabled
...
...
src/memberdef.h
View file @
eed0c89f
...
@@ -385,6 +385,7 @@ class MemberDef : public Definition
...
@@ -385,6 +385,7 @@ class MemberDef : public Definition
void
_computeIsConstructor
();
void
_computeIsConstructor
();
void
_computeIsDestructor
();
void
_computeIsDestructor
();
void
_getLabels
(
QStrList
&
sl
,
Definition
*
container
)
const
;
void
_getLabels
(
QStrList
&
sl
,
Definition
*
container
)
const
;
void
_writeGroupInclude
(
OutputList
&
ol
,
bool
inGroup
);
void
_writeCallGraph
(
OutputList
&
ol
);
void
_writeCallGraph
(
OutputList
&
ol
);
void
_writeCallerGraph
(
OutputList
&
ol
);
void
_writeCallerGraph
(
OutputList
&
ol
);
void
_writeReimplements
(
OutputList
&
ol
);
void
_writeReimplements
(
OutputList
&
ol
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment