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
f38608d4
Commit
f38608d4
authored
May 22, 2000
by
dimitri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release-1.1.3-20000522
parent
8013b5fe
Changes
49
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
1230 additions
and
869 deletions
+1230
-869
INSTALL
INSTALL
+4
-4
README
README
+2
-2
VERSION
VERSION
+1
-1
config_templ.l
addon/configgen/config_templ.l
+37
-10
configgen.cpp
addon/configgen/configgen.cpp
+36
-15
doxywizard_templ.cpp
addon/doxywizard/doxywizard_templ.cpp
+1
-0
commands.doc
doc/commands.doc
+9
-0
faq.doc
doc/faq.doc
+10
-0
starting.doc
doc/starting.doc
+10
-7
doxygen.spec
packages/rpm/doxygen.spec
+1
-1
classdef.cpp
src/classdef.cpp
+32
-129
classdef.h
src/classdef.h
+11
-1
code.l
src/code.l
+36
-2
config.h
src/config.h
+4
-2
config.l
src/config.l
+103
-39
definition.cpp
src/definition.cpp
+10
-2
definition.h
src/definition.h
+14
-2
doxygen.cpp
src/doxygen.cpp
+221
-123
doxygen.h
src/doxygen.h
+8
-2
entry.cpp
src/entry.cpp
+2
-0
entry.h
src/entry.h
+1
-0
filedef.cpp
src/filedef.cpp
+15
-3
filedef.h
src/filedef.h
+2
-0
filename.cpp
src/filename.cpp
+5
-4
filename.h
src/filename.h
+2
-1
groupdef.cpp
src/groupdef.cpp
+19
-8
groupdef.h
src/groupdef.h
+2
-1
htmlgen.cpp
src/htmlgen.cpp
+1
-1
index.cpp
src/index.cpp
+31
-14
latexgen.cpp
src/latexgen.cpp
+1
-1
logos.cpp
src/logos.cpp
+200
-296
memberdef.cpp
src/memberdef.cpp
+15
-13
memberdef.h
src/memberdef.h
+8
-9
membergroup.cpp
src/membergroup.cpp
+20
-2
membergroup.h
src/membergroup.h
+1
-0
memberlist.cpp
src/memberlist.cpp
+50
-18
memberlist.h
src/memberlist.h
+4
-3
message.cpp
src/message.cpp
+100
-1
message.h
src/message.h
+4
-1
namespacedef.cpp
src/namespacedef.cpp
+16
-3
namespacedef.h
src/namespacedef.h
+3
-1
pre.l
src/pre.l
+7
-5
rtfgen.cpp
src/rtfgen.cpp
+2
-2
scanner.h
src/scanner.h
+4
-2
scanner.l
src/scanner.l
+143
-123
tag.l
src/tag.l
+4
-3
translator.h
src/translator.h
+1
-1
util.cpp
src/util.cpp
+16
-10
util.h
src/util.h
+1
-1
No files found.
INSTALL
View file @
f38608d4
DOXYGEN Version 1.1.3-200005
14
DOXYGEN Version 1.1.3-200005
22
CONTENTS
CONTENTS
--------
--------
...
@@ -15,8 +15,8 @@ INSTALLATION INSTRUCTIONS FOR UNIX:
...
@@ -15,8 +15,8 @@ INSTALLATION INSTRUCTIONS FOR UNIX:
1. Unpack the archive, unless you already have:
1. Unpack the archive, unless you already have:
gunzip doxygen-1.1.3-200005
14
.src.tar.gz # uncompress the archive
gunzip doxygen-1.1.3-200005
22
.src.tar.gz # uncompress the archive
tar xf doxygen-1.1.3-200005
14
.src.tar # unpack it
tar xf doxygen-1.1.3-200005
22
.src.tar # unpack it
2. Run the configure script:
2. Run the configure script:
...
@@ -252,4 +252,4 @@ The latest version of doxygen can be obtained at
...
@@ -252,4 +252,4 @@ The latest version of doxygen can be obtained at
Enjoy,
Enjoy,
Dimitri van Heesch (
14
May 2000)
Dimitri van Heesch (
22
May 2000)
README
View file @
f38608d4
DOXYGEN Version 1.1.3-200005
14
DOXYGEN Version 1.1.3-200005
22
Please read INSTALL for compilation instructions.
Please read INSTALL for compilation instructions.
...
@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at
...
@@ -7,4 +7,4 @@ The latest version of doxygen can be obtained at
Enjoy,
Enjoy,
Dimitri van Heesch (
14
May 2000)
Dimitri van Heesch (
22
May 2000)
VERSION
View file @
f38608d4
1.1.3-200005
14
1.1.3-200005
22
addon/configgen/config_templ.l
View file @
f38608d4
...
@@ -40,13 +40,16 @@ void err(const char *fmt, ...)
...
@@ -40,13 +40,16 @@ void err(const char *fmt, ...)
vfprintf(stderr, fmt, args);
vfprintf(stderr, fmt, args);
va_end(args);
va_end(args);
}
}
void warn(const char *fmt, ...)
void warn
_cont
(const char *fmt, ...)
{
{
va_list args;
va_list args;
va_start(args, fmt);
va_start(args, fmt);
vfprintf(stderr, fmt, args);
vfprintf(stderr, fmt, args);
va_end(args);
va_end(args);
}
}
void initWarningFormat()
{
}
#else
#else
#include "doxygen.h"
#include "doxygen.h"
#include "message.h"
#include "message.h"
...
@@ -183,7 +186,7 @@ static int yyread(char *buf,int max_size)
...
@@ -183,7 +186,7 @@ static int yyread(char *buf,int max_size)
else
else
{
{
*b=FALSE;
*b=FALSE;
warn("Warning: Invalid value `%s' for "
warn
_cont
("Warning: Invalid value `%s' for "
"boolean tag in line %d; use YES or NO\n",
"boolean tag in line %d; use YES or NO\n",
bs.data(),yyLineNr);
bs.data(),yyLineNr);
}
}
...
@@ -248,7 +251,7 @@ static void writeStringList(QTextStream &t,QStrList &l)
...
@@ -248,7 +251,7 @@ static void writeStringList(QTextStream &t,QStrList &l)
const char *s=p;
const char *s=p;
bool hasBlanks=FALSE;
bool hasBlanks=FALSE;
while ((c=*p++)!=0 && !hasBlanks) hasBlanks = (c==' ' || c=='\n' || c=='\t');
while ((c=*p++)!=0 && !hasBlanks) hasBlanks = (c==' ' || c=='\n' || c=='\t');
if (!first) t << " ";
if (!first) t << "
";
first=FALSE;
first=FALSE;
if (hasBlanks) t << "\"" << s << "\""; else t << s;
if (hasBlanks) t << "\"" << s << "\""; else t << s;
p = l.next();
p = l.next();
...
@@ -288,7 +291,7 @@ void configStrToVal()
...
@@ -288,7 +291,7 @@ void configStrToVal()
int ts = tabSizeString.toInt(&ok);
int ts = tabSizeString.toInt(&ok);
if (!ok || ts<1 || ts>16)
if (!ok || ts<1 || ts>16)
{
{
warn("Warning: argument of TAB_SIZE is not a valid number, using tab size of 8 spaces!\n");
warn
_cont
("Warning: argument of TAB_SIZE is not a valid number, using tab size of 8 spaces!\n");
ts=8;
ts=8;
}
}
Config::tabSize = ts;
Config::tabSize = ts;
...
@@ -304,7 +307,7 @@ void configStrToVal()
...
@@ -304,7 +307,7 @@ void configStrToVal()
int cols = colsInAlphaIndexString.toInt(&ok);
int cols = colsInAlphaIndexString.toInt(&ok);
if (!ok || cols<1 || cols>20)
if (!ok || cols<1 || cols>20)
{
{
warn("Warning: argument of COLS_IN_ALPHA_INDEX is not a valid number in the range [1..20]!\n"
warn
_cont
("Warning: argument of COLS_IN_ALPHA_INDEX is not a valid number in the range [1..20]!\n"
"Using the default of 5 columns!\n");
"Using the default of 5 columns!\n");
cols = 5;
cols = 5;
}
}
...
@@ -341,7 +344,8 @@ static void substEnvVarsInStrList(QStrList &sl)
...
@@ -341,7 +344,8 @@ static void substEnvVarsInStrList(QStrList &sl)
if (!wasQuoted) /* as a result of the expansion, a single string
if (!wasQuoted) /* as a result of the expansion, a single string
may have expanded into a list, which we'll
may have expanded into a list, which we'll
add to sl. If the orginal string already
add to sl. If the orginal string already
contained multiple elements no splitting is done! */
contained multiple elements no further
splitting is done to allow quoted items with spaces! */
{
{
...
@@ -354,10 +358,10 @@ static void substEnvVarsInStrList(QStrList &sl)
...
@@ -354,10 +358,10 @@ static void substEnvVarsInStrList(QStrList &sl)
{
{
char c;
char c;
// skip until start of new word
// skip until start of new word
for (;i<l && ((c=result.at(i))==' ' || c=='\t');i++)
while (i<l && ((c=result.at(i))==' ' || c=='\t')) i++;
p=i; // p marks the start index of the word
p=i; // p marks the start index of the word
// skip until end of a word
// skip until end of a word
for (;i<l && ((c=result.at(i))!=' ' && c!='\t' && c!='"');i++)
;
while (i<l && ((c=result.at(i))!=' ' && c!='\t' && c!='"')) i++
;
if (i<l) // not at the end of the string
if (i<l) // not at the end of the string
{
{
if (c=='"') // word within quotes
if (c=='"') // word within quotes
...
@@ -424,6 +428,29 @@ void checkConfig()
...
@@ -424,6 +428,29 @@ void checkConfig()
// projectName[0]=toupper(projectName[0]);
// projectName[0]=toupper(projectName[0]);
//}
//}
if (Config::warnFormat.isEmpty())
{
Config::warnFormat="$file:$line $text";
}
else
{
if (Config::warnFormat.find("$file")==-1)
{
err("Error: warning format does not contain a $file tag!\n");
exit(1);
}
if (Config::warnFormat.find("$line")==-1)
{
err("Error: warning format does not contain a $line tag!\n");
exit(1);
}
if (Config::warnFormat.find("$text")==-1)
{
err("Error: wanring format foes not contain a $text tag!\n");
exit(1);
}
}
initWarningFormat();
// set default man page extension if non is given by the user
// set default man page extension if non is given by the user
if (Config::manExtension.isEmpty())
if (Config::manExtension.isEmpty())
...
@@ -715,7 +742,7 @@ void checkConfig()
...
@@ -715,7 +742,7 @@ void checkConfig()
QFileInfo fi(Config::perlPath);
QFileInfo fi(Config::perlPath);
if (!fi.exists())
if (!fi.exists())
{
{
warn("Warning: tag PERL_PATH: perl interpreter not found at default or"
warn
_cont
("Warning: tag PERL_PATH: perl interpreter not found at default or"
"user specified (%s) location\n",
"user specified (%s) location\n",
Config::perlPath.data());
Config::perlPath.data());
}
}
...
...
addon/configgen/configgen.cpp
View file @
f38608d4
...
@@ -775,21 +775,7 @@ void init()
...
@@ -775,21 +775,7 @@ void init()
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Japanese"
);
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Japanese"
);
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Finnish"
);
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Finnish"
);
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Spanish"
);
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Spanish"
);
ConfigBool
::
add
(
"quietFlag"
,
ConfigString
::
addFixedValue
(
"outputLanguage"
,
"Croatian"
);
"QUIET"
,
"FALSE"
,
"generate progress messages flag"
,
"The QUIET tag can be used to turn on/off the messages that are generated
\n
"
"by doxygen. Possible values are YES and NO. If left blank NO is used.
\n
"
);
ConfigBool
::
add
(
"warningFlag"
,
"WARNINGS"
,
"TRUE"
,
"generate warnings flag"
,
"The WARNINGS tag can be used to turn on/off the warning messages that are
\n
"
"generated by doxygen. Possible values are YES and NO. If left blank
\n
"
"NO is used.
\n
"
);
ConfigBool
::
add
(
"noIndexFlag"
,
ConfigBool
::
add
(
"noIndexFlag"
,
"DISABLE_INDEX"
,
"DISABLE_INDEX"
,
"FALSE"
,
"FALSE"
,
...
@@ -984,6 +970,41 @@ void init()
...
@@ -984,6 +970,41 @@ void init()
"documentation sections, marked by
\\
if sectionname ...
\\
endif.
\n
"
"documentation sections, marked by
\\
if sectionname ...
\\
endif.
\n
"
);
);
//-----------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------
ConfigInfo
::
add
(
"Messages"
,
"configuration options related to warning and progress messages"
);
//-----------------------------------------------------------------------------------------------
ConfigBool
::
add
(
"quietFlag"
,
"QUIET"
,
"FALSE"
,
"generate progress messages flag"
,
"The QUIET tag can be used to turn on/off the messages that are generated
\n
"
"by doxygen. Possible values are YES and NO. If left blank NO is used.
\n
"
);
ConfigBool
::
add
(
"warningFlag"
,
"WARNINGS"
,
"TRUE"
,
"generate warnings flag"
,
"The WARNINGS tag can be used to turn on/off the warning messages that are
\n
"
"generated by doxygen. Possible values are YES and NO. If left blank
\n
"
"NO is used.
\n
"
);
ConfigBool
::
add
(
"warningUndocFlag"
,
"WARN_IF_UNDOCUMENTED"
,
"TRUE"
,
"generate undocumented warnings"
,
"If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
\n
"
"for undocumented members. If EXTRACT_ALL is set to YES then this flag will
\n
"
"automatically be disabled.
\n
"
);
ConfigString
::
add
(
"warnFormat"
,
"WARN_FORMAT"
,
"$file:$line: $text"
,
"format of the warning messages"
,
"The WARN_FORMAT tag determines the format of the warning messages that
\n
"
"doxygen can produce. The string should contain the $file, $line, and $text
\n
"
"tags, which will be replaced by the file and line number from which the
\n
"
"warning originated and the warning text.
\n
"
);
//-----------------------------------------------------------------------------------------------
ConfigInfo
::
add
(
"Input"
,
"configuration options related to the input files"
);
ConfigInfo
::
add
(
"Input"
,
"configuration options related to the input files"
);
//-----------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------
ConfigList
::
add
(
"inputSources"
,
ConfigList
::
add
(
"inputSources"
,
...
...
addon/doxywizard/doxywizard_templ.cpp
View file @
f38608d4
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
*/
*/
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <qmainwindow.h>
#include <qmainwindow.h>
#include <qpopupmenu.h>
#include <qpopupmenu.h>
#include <qfileinfo.h>
#include <qfileinfo.h>
...
...
doc/commands.doc
View file @
f38608d4
...
@@ -87,6 +87,7 @@ documentation:
...
@@ -87,6 +87,7 @@ documentation:
<li> \refitem cmdmainpage \mainpage
<li> \refitem cmdmainpage \mainpage
<li> \refitem cmdname \name
<li> \refitem cmdname \name
<li> \refitem cmdnamespace \namespace
<li> \refitem cmdnamespace \namespace
<li> \refitem cmdnosubgrouping \nosubgrouping
<li> \refitem cmdoverload \overload
<li> \refitem cmdoverload \overload
<li> \refitem cmdpage \page
<li> \refitem cmdpage \page
<li> \refitem cmdpar \par
<li> \refitem cmdpar \par
...
@@ -366,6 +367,14 @@ See section \ref memgroup for an example.
...
@@ -366,6 +367,14 @@ See section \ref memgroup for an example.
Indicates that a comment block contains documentation for a
Indicates that a comment block contains documentation for a
namespace with name \<name\>.
namespace with name \<name\>.
<hr>
\subsection cmdnosubgrouping \nosubgrouping
This command can be put in the documentation
of a class. It can be used in combination with member grouping
to avoid that doxygen puts a member group as a subgroup of a
Public/Protected/Private/... section.
<hr>
<hr>
\subsection cmdoverload \overload [(function declaration)]
\subsection cmdoverload \overload [(function declaration)]
...
...
doc/faq.doc
View file @
f38608d4
...
@@ -147,11 +147,21 @@ QTime and QIODevice classes.
...
@@ -147,11 +147,21 @@ QTime and QIODevice classes.
Another reason is for the nice and bug free utility classes, like QList,
Another reason is for the nice and bug free utility classes, like QList,
QDict, QString, QArray, QTextStream, QRegExp etc.
QDict, QString, QArray, QTextStream, QRegExp etc.
The GUI front-end doxywizard uses Qt for... well... the GUI!
<li><b>Can use doxygen on my Java code?</b>
<li><b>Can use doxygen on my Java code?</b>
No, at the moment there is no support for Java. I suggest to
No, at the moment there is no support for Java. I suggest to
use Sun's JavaDoc instead.
use Sun's JavaDoc instead.
<li><b>How can I exclude all test directories from my directory tree?</b>
Simply put an exclude pattern like this in the configuration file:
\verbatim
EXCLUDE_PATTERNS = */test/*
\endverbatim
</ol>
</ol>
\htmlonly
\htmlonly
...
...
doc/starting.doc
View file @
f38608d4
...
@@ -493,13 +493,16 @@ detailed information about the group.
...
@@ -493,13 +493,16 @@ detailed information about the group.
Nesting of member groups is not allowed.
Nesting of member groups is not allowed.
If all members of a member group have the same type and protection level
If all members of a member group inside a class have the same type
(for instance all are static public members), then the whole member
and protection level (for instance all are static public members),
group is displayed as a subgroup of the type/protection level group
then the whole member group is displayed as a subgroup of
(the group is displayed as a subsection of the "Static Public Members"
the type/protection level group (the group is displayed as a
section for instance). If two or more members have different types,
subsection of the "Static Public Members" section for instance).
then the group is put at the same level as the automatically
If two or more members have different types, then the group is put
generated groups.
at the same level as the automatically generated groups.
If you want to force all member-groups of a class to be at the top level,
you should put a \ref cmdnosubgrouping "\\nosubgrouping" command inside the
documentation of the class.
\par Example:
\par Example:
\verbinclude memgrp.cpp
\verbinclude memgrp.cpp
...
...
packages/rpm/doxygen.spec
View file @
f38608d4
Name: doxygen
Name: doxygen
Version: 1.1.3-200005
14
Version: 1.1.3-200005
22
Summary: documentation system for C, C++ and IDL
Summary: documentation system for C, C++ and IDL
Release: 1
Release: 1
Source0: doxygen-%{version}.src.tar.gz
Source0: doxygen-%{version}.src.tar.gz
...
...
src/classdef.cpp
View file @
f38608d4
...
@@ -42,8 +42,11 @@ static QCString stripExtension(const char *fName)
...
@@ -42,8 +42,11 @@ static QCString stripExtension(const char *fName)
}
}
// constructs a new class definition
// constructs a new class definition
ClassDef
::
ClassDef
(
const
char
*
nm
,
CompoundType
ct
,
const
char
*
ref
,
const
char
*
fName
)
ClassDef
::
ClassDef
(
:
Definition
(
removeRedundantWhiteSpace
(
nm
))
const
char
*
defFileName
,
int
defLine
,
const
char
*
nm
,
CompoundType
ct
,
const
char
*
ref
,
const
char
*
fName
)
:
Definition
(
defFileName
,
defLine
,
removeRedundantWhiteSpace
(
nm
))
{
{
//name=n;
//name=n;
if
(
fName
)
if
(
fName
)
...
@@ -83,6 +86,16 @@ ClassDef::ClassDef(const char *nm,CompoundType ct,const char *ref,const char *fN
...
@@ -83,6 +86,16 @@ ClassDef::ClassDef(const char *nm,CompoundType ct,const char *ref,const char *fN
memberGroupList
=
new
MemberGroupList
;
memberGroupList
=
new
MemberGroupList
;
memberGroupList
->
setAutoDelete
(
TRUE
);
memberGroupList
->
setAutoDelete
(
TRUE
);
memberGroupDict
=
new
MemberGroupDict
(
257
);
memberGroupDict
=
new
MemberGroupDict
(
257
);
int
i
=
name
().
findRev
(
"::"
);
if
(
i
==-
1
)
{
scopelessName
=
name
();
}
else
{
scopelessName
=
name
().
right
(
name
().
length
()
-
i
-
2
);
}
subGrouping
=
TRUE
;
}
}
// destroy the class definition
// destroy the class definition
...
@@ -354,12 +367,14 @@ void ClassDef::insertMember(MemberDef *md,int groupId)
...
@@ -354,12 +367,14 @@ void ClassDef::insertMember(MemberDef *md,int groupId)
enumValMembers
.
append
(
md
);
enumValMembers
.
append
(
md
);
break
;
break
;
case
MemberDef
:
:
Function
:
case
MemberDef
:
:
Function
:
if
(
md
->
name
()
==
name
()
||
// constructor
if
(
md
->
name
()
==
scopelessName
||
// constructor
(
md
->
name
().
find
(
'~'
)
!=-
1
&&
// hack to detect destructor
(
md
->
name
().
find
(
'~'
)
!=-
1
&&
// hack to detect destructor
md
->
name
().
find
(
"operator"
)
==-
1
md
->
name
().
find
(
"operator"
)
==-
1
)
)
)
)
{
constructors
.
append
(
md
);
constructors
.
append
(
md
);
}
else
else
{
{
if
(
Config
::
sortMembersFlag
)
if
(
Config
::
sortMembersFlag
)
...
@@ -454,6 +469,17 @@ void ClassDef::computeAnchors()
...
@@ -454,6 +469,17 @@ void ClassDef::computeAnchors()
setAnchors
(
'u'
,
&
priTypes
);
setAnchors
(
'u'
,
&
priTypes
);
}
}
void
ClassDef
::
distributeMemberGroupDocumentation
()
{
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
mg
->
distributeMemberGroupDocumentation
();
}
}
// add a file name to the used files set
// add a file name to the used files set
void
ClassDef
::
insertUsedFile
(
const
char
*
f
)
void
ClassDef
::
insertUsedFile
(
const
char
*
f
)
{
{
...
@@ -524,7 +550,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
...
@@ -524,7 +550,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
if
(
!
briefDescription
().
isEmpty
())
if
(
!
briefDescription
().
isEmpty
())
{
{
parseDoc
(
briefOutput
,
name
(),
0
,
briefDescription
());
parseDoc
(
briefOutput
,
defFileName
,
defLine
,
name
(),
0
,
briefDescription
());
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
writeString
(
"
\n
"
);
ol
.
writeString
(
"
\n
"
);
ol
.
pushGeneratorState
();
ol
.
pushGeneratorState
();
...
@@ -738,7 +764,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
...
@@ -738,7 +764,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
MemberGroup
*
mg
;
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
{
if
(
!
mg
->
allMembersInSameSection
())
// group is in its own section
if
(
!
mg
->
allMembersInSameSection
()
||
!
subGrouping
)
// group is in its own section
{
{
mg
->
writeDeclarations
(
ol
,
this
,
0
,
0
,
0
);
mg
->
writeDeclarations
(
ol
,
this
,
0
,
0
,
0
);
}
}
...
@@ -856,7 +882,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
...
@@ -856,7 +882,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol
.
disableAllBut
(
OutputGenerator
::
RTF
);
ol
.
disableAllBut
(
OutputGenerator
::
RTF
);
ol
.
newParagraph
();
ol
.
newParagraph
();
ol
.
popGeneratorState
();
ol
.
popGeneratorState
();
parseDoc
(
ol
,
name
(),
0
,
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
defFileName
,
defLine
,
name
(),
0
,
documentation
()
+
"
\n
"
);
}
}
// write examples
// write examples
if
(
exampleFlag
)
if
(
exampleFlag
)
...
@@ -1149,33 +1175,6 @@ void ClassDef::writeMemberList(OutputList &ol)
...
@@ -1149,33 +1175,6 @@ void ClassDef::writeMemberList(OutputList &ol)
ol
.
popGeneratorState
();
ol
.
popGeneratorState
();
}
}
//void ClassDef::writeIncludeFile(OutputList &ol)
//{
// initParseCodeContext();
// if (!incFile) return;
// //printf("incFile=%s\n",incFile->absFilePath().data());
// ol.disableAllBut(OutputGenerator::Html);
// startFile(ol,fileName+"-include",name()+" Include File");
// startTitle(ol,0);
// QCString n=incName.copy();
// if (incName.isEmpty())
// {
// n=incFile->name();
// if (Config::fullPathNameFlag)
// {
// n.prepend(stripFromPath(incFile->getPath().copy()));
// }
// }
// parseText(ol,n);
// endTitle(ol,0,0);
// parseText(ol,theTranslator->trVerbatimText(incFile->name()));
// //ol.writeRuler();
// ol.startCodeFragment();
// parseCode(ol,n,fileToString(incFile->absFilePath()),FALSE,0);
// ol.endCodeFragment();
// endFile(ol);
// ol.enableAll();
//}
// add a reference to an example
// add a reference to an example
bool
ClassDef
::
addExample
(
const
char
*
anchor
,
const
char
*
nameStr
,
bool
ClassDef
::
addExample
(
const
char
*
anchor
,
const
char
*
nameStr
,
...
@@ -1203,48 +1202,6 @@ bool ClassDef::hasExamples()
...
@@ -1203,48 +1202,6 @@ bool ClassDef::hasExamples()
return
exampleList
->
count
()
>
0
;
return
exampleList
->
count
()
>
0
;
}
}
#if 0
// write the list of all examples that are used in this class.
void ClassDef::writeExample(OutputList &ol)
{
QCString exampleLine=theTranslator->trWriteList(exampleList->count());
QRegExp marker("@[0-9]+");
int index=0,newIndex,matchLen;
// now replace all markers in inheritLine with links to the classes
while ((newIndex=marker.match(exampleLine,index,&matchLen))!=-1)
{
bool ok;
parseText(ol,exampleLine.mid(index,newIndex-index));
uint entryIndex = exampleLine.mid(newIndex+1,matchLen-1).toUInt(&ok);
Example *e=exampleList->at(entryIndex);
if (ok && e)
{
ol.writeObjectLink(0,e->file,e->anchor,e->name);
}
index=newIndex+matchLen;
}
parseText(ol,exampleLine.right(exampleLine.length()-index));
ol.writeString(".");
#if 0
Example *e=exampleList->first();
while (e)
{
ol.writeObjectLink(0,e->file,e->anchor,e->name);
e=exampleList->next();
if (e)
{
if (exampleList->at()==(int)exampleList->count()-1)
parseText(ol," "+theTranslator->trAnd()+" ");
else
ol.writeString(", ");
}
}
ol.writeString(".");
#endif
}
#endif
void
ClassDef
::
setTemplateArguments
(
ArgumentList
*
al
)
void
ClassDef
::
setTemplateArguments
(
ArgumentList
*
al
)
{
{
...
@@ -1260,33 +1217,6 @@ void ClassDef::setTemplateArguments(ArgumentList *al)
...
@@ -1260,33 +1217,6 @@ void ClassDef::setTemplateArguments(ArgumentList *al)
}
}
}
}
//QCString ClassDef::getTemplateNameString()
//{
// QCString result;
// if (!tempArgs || tempArgs->count()==0) return result;
// result="<";
// Argument *a=tempArgs->first();
// while (a)
// {
// if (!a->name.isEmpty()) // add template argument name
// {
// result+=a->name;
// }
// else // extract name from type
// {
// int i=a->type.length()-1;
// while (i>=0 && isId(a->type.at(i))) i--;
// if (i>0)
// {
// result+=a->type.right(a->type.length()-i-1);
// }
// }
// a=tempArgs->next();
// if (a) result+=", ";
// }
// result+=">";
// return result;
//}
bool
ClassDef
::
hasNonReferenceSuperClass
()
bool
ClassDef
::
hasNonReferenceSuperClass
()
{
{
...
@@ -1297,33 +1227,6 @@ bool ClassDef::hasNonReferenceSuperClass()
...
@@ -1297,33 +1227,6 @@ bool ClassDef::hasNonReferenceSuperClass()
return
found
;
return
found
;
}
}
//void ClassDef::writeMembersToContents()
//{
// HtmlHelp *htmlHelp = HtmlHelp::getInstance();
//
// htmlHelp->incContentsDepth();
//
// MemberNameInfoListIterator mnili(*allMemberNameInfoList);
// MemberNameInfo *mni;
// for (;(mni=mnili.current());++mnili)
// {
// MemberNameInfoIterator mnii(*mni);
// MemberInfo *mi;
// for (mnii.toLast();(mi=mnii.current());--mnii)
// {
// MemberDef *md=mi->memberDef;
// ClassDef *cd=md->memberClass();
// if (md->isLinkable() && cd==this) // member is not inherited
// {
// htmlHelp->addContentsItem(md->name()+md->argsString(),
// cd->getOutputFileBase(),
// md->anchor());
// }
// }
// }
// htmlHelp->decContentsDepth();
//}
void
ClassDef
::
writeDeclaration
(
OutputList
&
ol
,
MemberDef
*
md
,
bool
inGroup
)
void
ClassDef
::
writeDeclaration
(
OutputList
&
ol
,
MemberDef
*
md
,
bool
inGroup
)
{
{
//ol.insertMemberAlign();
//ol.insertMemberAlign();
...
...
src/classdef.h
View file @
f38608d4
...
@@ -53,7 +53,9 @@ class ClassDef : public Definition
...
@@ -53,7 +53,9 @@ class ClassDef : public Definition
Interface
=
Entry
::
INTERFACE_SEC
,
Interface
=
Entry
::
INTERFACE_SEC
,
Exception
=
Entry
::
EXCEPTION_SEC
Exception
=
Entry
::
EXCEPTION_SEC
};
};
ClassDef
(
const
char
*
name
,
CompoundType
ct
,
const
char
*
ref
=
0
,
const
char
*
fName
=
0
);
ClassDef
(
const
char
*
fileName
,
int
startLine
,
const
char
*
name
,
CompoundType
ct
,
const
char
*
ref
=
0
,
const
char
*
fName
=
0
);
~
ClassDef
();
~
ClassDef
();
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
CompoundType
compoundType
()
const
{
return
compType
;
}
CompoundType
compoundType
()
const
{
return
compType
;
}
...
@@ -115,8 +117,11 @@ class ClassDef : public Definition
...
@@ -115,8 +117,11 @@ class ClassDef : public Definition
{
{
return
usesIntfClassDict
;
return
usesIntfClassDict
;
}
}
void
setSubGrouping
(
bool
enabled
)
{
subGrouping
=
enabled
;
}
bool
visited
;
bool
visited
;
void
distributeMemberGroupDocumentation
();
protected
:
protected
:
void
addUsedInterfaceClasses
(
MemberDef
*
md
,
const
char
*
typeStr
);
void
addUsedInterfaceClasses
(
MemberDef
*
md
,
const
char
*
typeStr
);
...
@@ -126,6 +131,7 @@ class ClassDef : public Definition
...
@@ -126,6 +131,7 @@ class ClassDef : public Definition
IncludeInfo
*
incInfo
;
// header file to refer to
IncludeInfo
*
incInfo
;
// header file to refer to
QCString
incName
;
// alternative include file name
QCString
incName
;
// alternative include file name
QCString
memListFileName
;
QCString
memListFileName
;
QCString
scopelessName
;
// name without any scopes
BaseClassList
*
inherits
;
BaseClassList
*
inherits
;
BaseClassList
*
inheritedBy
;
BaseClassList
*
inheritedBy
;
NamespaceDef
*
nspace
;
// the namespace this class is in
NamespaceDef
*
nspace
;
// the namespace this class is in
...
@@ -177,6 +183,10 @@ class ClassDef : public Definition
...
@@ -177,6 +183,10 @@ class ClassDef : public Definition
FileDef
*
fileDef
;
FileDef
*
fileDef
;
UsesClassDict
*
usesImplClassDict
;
UsesClassDict
*
usesImplClassDict
;
UsesClassDict
*
usesIntfClassDict
;
UsesClassDict
*
usesIntfClassDict
;
bool
subGrouping
;
// does this class group its user-grouped members
// as a sub-section of the normal (public/protected/..)
// groups?
};
};
struct
UsesClassDef
struct
UsesClassDef
...
...
src/code.l
View file @
f38608d4
...
@@ -1002,10 +1002,10 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
...
@@ -1002,10 +1002,10 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
<SkipCxxComment>. {
<SkipCxxComment>. {
g_code->codify(yytext);
g_code->codify(yytext);
}
}
<RemoveSpecialCComment>"*/"{B}*\n({B}*\n)*{B}*"/*"[*!]/[^/*] {
<RemoveSpecialCComment>"*/"{B}*\n({B}*\n)*
({B}*"//@"[{}]{B}*\n)?
{B}*"/*"[*!]/[^/*] {
g_yyLineNr+=QCString(yytext).contains('\n');
g_yyLineNr+=QCString(yytext).contains('\n');
}
}
<RemoveSpecialCComment>"*/"{B}*\n({B}*\n)* {
<RemoveSpecialCComment>"*/"{B}*\n({B}*\n)*
({B}*"//@"[{}]{B}*\n)?
{
g_yyLineNr+=QCString(yytext).contains('\n');
g_yyLineNr+=QCString(yytext).contains('\n');
g_code->endCodeLine();
g_code->endCodeLine();
if (g_yyLineNr<g_inputLines)
if (g_yyLineNr<g_inputLines)
...
@@ -1046,6 +1046,40 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
...
@@ -1046,6 +1046,40 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
endFontClass();
endFontClass();
}
}
}
}
<*>\n({B}*"//@"[{}]{B}*\n) { // remove one-line group marker
if (Config::stripCommentsFlag)
{
g_yyLineNr+=((QCString)yytext).contains('\n');
g_code->endCodeLine();
if (g_yyLineNr<g_inputLines)
{
startCodeLine(*g_code);
}
}
else
{
startFontClass("comment");
codifyLines(yytext);
endFontClass();
}
}
<*>^{B}*"//@"[{}]{B}*\n { // remove one-line group marker
if (Config::stripCommentsFlag)
{
g_yyLineNr++;
g_code->endCodeLine();
if (g_yyLineNr<g_inputLines)
{
startCodeLine(*g_code);
}
}
else
{
startFontClass("comment");
codifyLines(yytext);
endFontClass();
}
}
<*>^{B}*"//"[!/][^\n]*\n { // remove special one-line comment
<*>^{B}*"//"[!/][^\n]*\n { // remove special one-line comment
if (Config::stripCommentsFlag)
if (Config::stripCommentsFlag)
{
{
...
...
src/config.h
View file @
f38608d4
...
@@ -35,8 +35,6 @@ struct Config
...
@@ -35,8 +35,6 @@ struct Config
static
QCString
projectNumber
;
// the number of the project
static
QCString
projectNumber
;
// the number of the project
static
QCString
outputDir
;
// the global output directory
static
QCString
outputDir
;
// the global output directory
static
QCString
outputLanguage
;
// the output language
static
QCString
outputLanguage
;
// the output language
static
bool
quietFlag
;
// generate progress messages flag
static
bool
warningFlag
;
// generate warnings flag
static
bool
noIndexFlag
;
// generate condensed index flag
static
bool
noIndexFlag
;
// generate condensed index flag
static
bool
extractAllFlag
;
// gererate docs for all classes flag
static
bool
extractAllFlag
;
// gererate docs for all classes flag
static
bool
extractPrivateFlag
;
// generate docs for private members flag
static
bool
extractPrivateFlag
;
// generate docs for private members flag
...
@@ -61,6 +59,10 @@ struct Config
...
@@ -61,6 +59,10 @@ struct Config
static
bool
sortMembersFlag
;
// sort members alphabetically?
static
bool
sortMembersFlag
;
// sort members alphabetically?
static
int
tabSize
;
// number of spaces in a tab
static
int
tabSize
;
// number of spaces in a tab
static
QStrList
sectionFilterList
;
// list of section filters that are enabled
static
QStrList
sectionFilterList
;
// list of section filters that are enabled
static
bool
quietFlag
;
// generate progress messages flag
static
bool
warningFlag
;
// generate warnings flag
static
bool
warningUndocFlag
;
// generate undocumented warnings
static
QCString
warnFormat
;
// format of the warning messages
static
QStrList
inputSources
;
// list of input files
static
QStrList
inputSources
;
// list of input files
static
QStrList
filePatternList
;
// list of file patterns
static
QStrList
filePatternList
;
// list of file patterns
static
bool
recursiveFlag
;
// scan directories recursively
static
bool
recursiveFlag
;
// scan directories recursively
...
...
src/config.l
View file @
f38608d4
This diff is collapsed.
Click to expand it.
src/definition.cpp
View file @
f38608d4
...
@@ -25,9 +25,17 @@
...
@@ -25,9 +25,17 @@
#include "outputlist.h"
#include "outputlist.h"
#include "scanner.h"
#include "scanner.h"
Definition
::
Definition
(
const
char
*
name
,
const
char
*
b
,
const
char
*
d
)
Definition
::
Definition
(
const
char
*
df
,
int
dl
,
const
char
*
name
,
const
char
*
b
,
const
char
*
d
)
{
{
n
=
name
;
brief
=
b
;
doc
=
d
;
sectionList
=
0
,
startBodyLine
=
endBodyLine
=-
1
,
bodyDef
=
0
;
defFileName
=
df
;
defLine
=
dl
;
n
=
name
;
brief
=
b
;
doc
=
d
;
sectionList
=
0
,
startBodyLine
=
endBodyLine
=-
1
,
bodyDef
=
0
;
}
}
Definition
::~
Definition
()
Definition
::~
Definition
()
...
...
src/definition.h
View file @
f38608d4
...
@@ -25,12 +25,14 @@ class FileDef;
...
@@ -25,12 +25,14 @@ class FileDef;
class
OutputList
;
class
OutputList
;
class
SectionList
;
class
SectionList
;
/*! The common base class of all
definition
s. */
/*! The common base class of all
entity definitions found in the source
s. */
class
Definition
class
Definition
{
{
public
:
public
:
/*! create a new definition */
/*! create a new definition */
Definition
(
const
char
*
name
,
const
char
*
b
=
0
,
const
char
*
d
=
0
);
Definition
(
const
char
*
defFileName
,
int
defLine
,
const
char
*
name
,
const
char
*
b
=
0
,
const
char
*
d
=
0
);
/*! destroys the definition */
/*! destroys the definition */
virtual
~
Definition
();
virtual
~
Definition
();
/*! returns the name of the definition */
/*! returns the name of the definition */
...
@@ -92,17 +94,27 @@ class Definition
...
@@ -92,17 +94,27 @@ class Definition
FileDef
*
getBodyDef
()
{
return
bodyDef
;
}
FileDef
*
getBodyDef
()
{
return
bodyDef
;
}
void
writeSourceRef
(
OutputList
&
ol
,
const
char
*
scopeName
);
void
writeSourceRef
(
OutputList
&
ol
,
const
char
*
scopeName
);
/*! returns the file in which this definition was found */
QCString
getDefFileName
()
const
{
return
defFileName
;
}
/*! returns the line number at which the definition was found */
int
getDefLine
()
const
{
return
defLine
;
}
protected
:
protected
:
int
startBodyLine
;
// line number of the start of the definition
int
startBodyLine
;
// line number of the start of the definition
int
endBodyLine
;
// line number of the end of the definition
int
endBodyLine
;
// line number of the end of the definition
FileDef
*
bodyDef
;
// file definition containing the function body
FileDef
*
bodyDef
;
// file definition containing the function body
// where the item was found
QCString
defFileName
;
int
defLine
;
private
:
private
:
QCString
n
;
// name of the definition
QCString
n
;
// name of the definition
QCString
brief
;
// brief description
QCString
brief
;
// brief description
QCString
doc
;
// detailed description
QCString
doc
;
// detailed description
QCString
ref
;
// reference to external documentation
QCString
ref
;
// reference to external documentation
SectionList
*
sectionList
;
// list of all sections
SectionList
*
sectionList
;
// list of all sections
};
};
#endif
#endif
src/doxygen.cpp
View file @
f38608d4
This diff is collapsed.
Click to expand it.
src/doxygen.h
View file @
f38608d4
...
@@ -36,8 +36,14 @@
...
@@ -36,8 +36,14 @@
struct
PageInfo
struct
PageInfo
{
{
PageInfo
(
const
char
*
n
,
const
char
*
d
,
const
char
*
t
)
PageInfo
(
const
char
*
f
,
int
l
,
const
char
*
n
,
const
char
*
d
,
const
char
*
t
)
:
{
name
=
n
;
doc
=
d
;
title
=
t
;
}
defFileName
(
f
),
defLine
(
l
),
name
(
n
),
doc
(
d
),
title
(
t
)
{}
// where the page definition was found
QCString
defFileName
;
int
defLine
;
// contents of the page
QCString
name
;
QCString
name
;
QCString
doc
;
QCString
doc
;
QCString
title
;
QCString
title
;
...
...
src/entry.cpp
View file @
f38608d4
...
@@ -207,6 +207,7 @@ void Entry::reset()
...
@@ -207,6 +207,7 @@ void Entry::reset()
scopeSpec
.
resize
(
0
);
scopeSpec
.
resize
(
0
);
memberSpec
.
resize
(
0
);
memberSpec
.
resize
(
0
);
initializer
.
resize
(
0
);
initializer
.
resize
(
0
);
startLine
=
1
;
bodyLine
=
-
1
;
bodyLine
=
-
1
;
endBodyLine
=
-
1
;
endBodyLine
=
-
1
;
mGrpId
=
-
1
;
mGrpId
=
-
1
;
...
@@ -217,6 +218,7 @@ void Entry::reset()
...
@@ -217,6 +218,7 @@ void Entry::reset()
stat
=
FALSE
;
stat
=
FALSE
;
proto
=
FALSE
;
proto
=
FALSE
;
inLine
=
FALSE
;
inLine
=
FALSE
;
subGrouping
=
TRUE
;
protection
=
Public
;
protection
=
Public
;
sublist
->
clear
();
sublist
->
clear
();
extends
->
clear
();
extends
->
clear
();
...
...
src/entry.h
View file @
f38608d4
...
@@ -159,6 +159,7 @@ class Entry
...
@@ -159,6 +159,7 @@ class Entry
bool
stat
;
// static ?
bool
stat
;
// static ?
bool
proto
;
// prototype ?
bool
proto
;
// prototype ?
bool
inLine
;
// inline ?
bool
inLine
;
// inline ?
bool
subGrouping
;
// automatically group class members?
Specifier
virt
;
// virtualness of the entry
Specifier
virt
;
// virtualness of the entry
Entry
*
parent
;
// parent node in the tree
Entry
*
parent
;
// parent node in the tree
QCString
type
;
// member type
QCString
type
;
// member type
...
...
src/filedef.cpp
View file @
f38608d4
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
file was read from a tag file or 0 otherwise
file was read from a tag file or 0 otherwise
*/
*/
FileDef
::
FileDef
(
const
char
*
p
,
const
char
*
nm
,
const
char
*
ref
)
FileDef
::
FileDef
(
const
char
*
p
,
const
char
*
nm
,
const
char
*
ref
)
:
Definition
(
nm
)
:
Definition
(
(
QCString
)
p
+
nm
,
1
,
nm
)
{
{
path
=
p
;
path
=
p
;
filepath
=
path
+
nm
;
filepath
=
path
+
nm
;
...
@@ -83,6 +83,16 @@ void FileDef::computeAnchors()
...
@@ -83,6 +83,16 @@ void FileDef::computeAnchors()
setAnchors
(
'a'
,
&
allMemberList
);
setAnchors
(
'a'
,
&
allMemberList
);
}
}
void
FileDef
::
distributeMemberGroupDocumentation
()
{
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
mg
->
distributeMemberGroupDocumentation
();
}
}
/*! Write the documentation page for this file to the file of output
/*! Write the documentation page for this file to the file of output
generators \a ol.
generators \a ol.
*/
*/
...
@@ -95,6 +105,8 @@ void FileDef::writeDocumentation(OutputList &ol)
...
@@ -95,6 +105,8 @@ void FileDef::writeDocumentation(OutputList &ol)
//{
//{
// fn.prepend(stripFromPath(getPath().copy()));
// fn.prepend(stripFromPath(getPath().copy()));
//}
//}
//printf("WriteDocumentation %p diskname=%s\n",this,diskname.data());
QCString
pageTitle
=
name
()
+
" File Reference"
;
QCString
pageTitle
=
name
()
+
" File Reference"
;
startFile
(
ol
,
diskname
,
pageTitle
);
startFile
(
ol
,
diskname
,
pageTitle
);
...
@@ -113,7 +125,7 @@ void FileDef::writeDocumentation(OutputList &ol)
...
@@ -113,7 +125,7 @@ void FileDef::writeDocumentation(OutputList &ol)
{
{
//if (brief.at(bl-1)!='.' && brief.at(bl-1)!='!' && brief.at(bl!='?'))
//if (brief.at(bl-1)!='.' && brief.at(bl-1)!='!' && brief.at(bl!='?'))
// brief+='.';
// brief+='.';
parseDoc
(
briefOutput
,
0
,
0
,
briefDescription
());
parseDoc
(
briefOutput
,
filepath
,
1
,
0
,
0
,
briefDescription
());
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
writeString
(
"
\n
"
);
ol
.
writeString
(
"
\n
"
);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
...
@@ -293,7 +305,7 @@ void FileDef::writeDocumentation(OutputList &ol)
...
@@ -293,7 +305,7 @@ void FileDef::writeDocumentation(OutputList &ol)
{
{
//if (doc.at(dl-1)!='.' && doc.at(dl-1)!='!' && doc.at(dl-1)!='?')
//if (doc.at(dl-1)!='.' && doc.at(dl-1)!='!' && doc.at(dl-1)!='?')
// doc+='.';
// doc+='.';
parseDoc
(
ol
,
0
,
0
,
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
filepath
,
1
,
0
,
0
,
documentation
()
+
"
\n
"
);
}
}
//printf("Writing source ref for file %s\n",name().data());
//printf("Writing source ref for file %s\n",name().data());
if
(
Config
::
sourceBrowseFlag
)
if
(
Config
::
sourceBrowseFlag
)
...
...
src/filedef.h
View file @
f38608d4
...
@@ -125,6 +125,8 @@ class FileDef : public Definition
...
@@ -125,6 +125,8 @@ class FileDef : public Definition
QList
<
IncludeInfo
>
*
includeFileList
()
const
{
return
includeList
;
}
QList
<
IncludeInfo
>
*
includeFileList
()
const
{
return
includeList
;
}
QDict
<
IncludeInfo
>
*
includeFileDict
()
const
{
return
includeDict
;
}
QDict
<
IncludeInfo
>
*
includeFileDict
()
const
{
return
includeDict
;
}
void
distributeMemberGroupDocumentation
();
private
:
private
:
MemberList
allMemberList
;
MemberList
allMemberList
;
MemberList
defineMembers
;
MemberList
defineMembers
;
...
...
src/filename.cpp
View file @
f38608d4
...
@@ -55,7 +55,7 @@ void FileName::generateDiskNames()
...
@@ -55,7 +55,7 @@ void FileName::generateDiskNames()
//printf("Multiple occurrences of %s\n",name.data());
//printf("Multiple occurrences of %s\n",name.data());
int
i
=
0
,
j
=
0
;
int
i
=
0
,
j
=
0
;
bool
found
=
FALSE
;
bool
found
=
FALSE
;
while
(
!
found
)
while
(
!
found
)
// search for the common prefix of all paths
{
{
fd
=
first
();
fd
=
first
();
while
(
fd
&&
fd
->
isReference
())
fd
=
next
();
while
(
fd
&&
fd
->
isReference
())
fd
=
next
();
...
@@ -66,7 +66,7 @@ void FileName::generateDiskNames()
...
@@ -66,7 +66,7 @@ void FileName::generateDiskNames()
{
{
if
(
!
fd
->
isReference
())
if
(
!
fd
->
isReference
())
{
{
//printf("i=%d
fd->path=`%s' fd->name=`%s'\n",i,fd->path
.data(),fd->name().data());
//printf("i=%d
j=%d fd->path=`%s' fd->name=`%s'\n",i,j,fd->path.left(i)
.data(),fd->name().data());
if
(
i
==
(
int
)
fd
->
path
.
length
())
if
(
i
==
(
int
)
fd
->
path
.
length
())
{
{
//warning("Warning: Input file %s found multiple times!\n"
//warning("Warning: Input file %s found multiple times!\n"
...
@@ -88,8 +88,9 @@ void FileName::generateDiskNames()
...
@@ -88,8 +88,9 @@ void FileName::generateDiskNames()
//printf("fd->setName(%s)\n",(fd->path.right(fd->path.length()-j-1)+name).data());
//printf("fd->setName(%s)\n",(fd->path.right(fd->path.length()-j-1)+name).data());
if
(
!
fd
->
isReference
())
if
(
!
fd
->
isReference
())
{
{
fd
->
setName
(
fd
->
path
.
right
(
fd
->
path
.
length
()
-
j
-
1
)
+
name
);
QCString
prefix
=
fd
->
path
.
right
(
fd
->
path
.
length
()
-
j
-
1
);
fd
->
diskname
=
convertSlashes
(
fd
->
name
());
fd
->
setName
(
prefix
+
name
);
fd
->
diskname
=
convertSlashes
(
prefix
+
name
);
}
}
fd
=
next
();
fd
=
next
();
}
}
...
...
src/filename.h
View file @
f38608d4
...
@@ -61,7 +61,8 @@ class FileNameListIterator : public QListIterator<FileName>
...
@@ -61,7 +61,8 @@ class FileNameListIterator : public QListIterator<FileName>
class
FileNameDict
:
public
QDict
<
FileName
>
class
FileNameDict
:
public
QDict
<
FileName
>
{
{
public
:
public
:
FileNameDict
(
uint
size
)
:
QDict
<
FileName
>
(
size
)
{}
FileNameDict
(
uint
size
)
:
QDict
<
FileName
>
(
size
,
Config
::
caseSensitiveNames
)
{}
~
FileNameDict
()
{}
~
FileNameDict
()
{}
};
};
...
...
src/groupdef.cpp
View file @
f38608d4
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
#include "membergroup.h"
#include "membergroup.h"
#include "doxygen.h"
#include "doxygen.h"
GroupDef
::
GroupDef
(
const
char
*
na
,
const
char
*
t
)
:
GroupDef
::
GroupDef
(
const
char
*
df
,
int
dl
,
const
char
*
na
,
const
char
*
t
)
:
Definition
(
na
)
Definition
(
df
,
dl
,
na
)
{
{
fileList
=
new
FileList
;
fileList
=
new
FileList
;
classList
=
new
ClassList
;
classList
=
new
ClassList
;
...
@@ -66,6 +66,16 @@ GroupDef::~GroupDef()
...
@@ -66,6 +66,16 @@ GroupDef::~GroupDef()
delete
memberGroupDict
;
delete
memberGroupDict
;
}
}
void
GroupDef
::
distributeMemberGroupDocumentation
()
{
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
mg
->
distributeMemberGroupDocumentation
();
}
}
void
GroupDef
::
addFile
(
const
FileDef
*
def
)
void
GroupDef
::
addFile
(
const
FileDef
*
def
)
{
{
fileList
->
append
(
def
);
fileList
->
append
(
def
);
...
@@ -159,7 +169,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
...
@@ -159,7 +169,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
if
(
!
briefDescription
().
isEmpty
())
if
(
!
briefDescription
().
isEmpty
())
{
{
parseDoc
(
briefOutput
,
name
(),
0
,
briefDescription
());
parseDoc
(
briefOutput
,
defFileName
,
defLine
,
name
(),
0
,
briefDescription
());
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
writeString
(
"
\n
"
);
ol
.
writeString
(
"
\n
"
);
ol
.
pushGeneratorState
();
ol
.
pushGeneratorState
();
...
@@ -189,7 +199,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
...
@@ -189,7 +199,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
if
(
!
fd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
if
(
!
fd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
{
{
ol
.
startMemberDescription
();
ol
.
startMemberDescription
();
parseDoc
(
ol
,
0
,
0
,
fd
->
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
fd
->
briefDescription
());
ol
.
endMemberDescription
();
ol
.
endMemberDescription
();
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
...
@@ -214,7 +224,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
...
@@ -214,7 +224,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
if
(
!
nd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
if
(
!
nd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
{
{
ol
.
startMemberDescription
();
ol
.
startMemberDescription
();
parseDoc
(
ol
,
0
,
0
,
nd
->
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
nd
->
briefDescription
());
ol
.
endMemberDescription
();
ol
.
endMemberDescription
();
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
...
@@ -238,7 +248,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
...
@@ -238,7 +248,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
if
(
!
gd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
if
(
!
gd
->
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
)
{
{
ol
.
startMemberDescription
();
ol
.
startMemberDescription
();
parseDoc
(
ol
,
0
,
0
,
gd
->
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
gd
->
briefDescription
());
ol
.
endMemberDescription
();
ol
.
endMemberDescription
();
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
...
@@ -284,7 +294,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
...
@@ -284,7 +294,7 @@ void GroupDef::writeDocumentation(OutputList &ol)
// write documentation
// write documentation
if
(
!
documentation
().
isEmpty
())
if
(
!
documentation
().
isEmpty
())
{
{
parseDoc
(
ol
,
name
(),
0
,
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
defFileName
,
defLine
,
name
(),
0
,
documentation
()
+
"
\n
"
);
}
}
}
}
...
@@ -427,7 +437,8 @@ void addMemberToGroups(Entry *root,MemberDef *md)
...
@@ -427,7 +437,8 @@ void addMemberToGroups(Entry *root,MemberDef *md)
}
}
else
if
(
mgd
!=
gd
)
else
if
(
mgd
!=
gd
)
{
{
warn
(
"Warning: Member %s found in multiple groups.!
\n
"
warn
(
mgd
->
getDefFileName
(),
mgd
->
getDefLine
(),
"Warning: Member %s found in multiple groups.!
\n
"
"The member will be put in group %s, and not in group %s"
,
"The member will be put in group %s, and not in group %s"
,
md
->
name
().
data
(),
mgd
->
name
().
data
(),
gd
->
name
().
data
()
md
->
name
().
data
(),
mgd
->
name
().
data
(),
gd
->
name
().
data
()
);
);
...
...
src/groupdef.h
View file @
f38608d4
...
@@ -39,7 +39,7 @@ class MemberGroupDict;
...
@@ -39,7 +39,7 @@ class MemberGroupDict;
class
GroupDef
:
public
Definition
class
GroupDef
:
public
Definition
{
{
public
:
public
:
GroupDef
(
const
char
*
name
,
const
char
*
title
);
GroupDef
(
const
char
*
fileName
,
int
line
,
const
char
*
name
,
const
char
*
title
);
~
GroupDef
();
~
GroupDef
();
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
const
char
*
groupTitle
()
const
{
return
title
;
}
const
char
*
groupTitle
()
const
{
return
title
;
}
...
@@ -60,6 +60,7 @@ class GroupDef : public Definition
...
@@ -60,6 +60,7 @@ class GroupDef : public Definition
return
isLinkableInProject
()
||
isReference
();
return
isLinkableInProject
()
||
isReference
();
}
}
void
computeAnchors
();
void
computeAnchors
();
void
distributeMemberGroupDocumentation
();
private
:
private
:
QCString
title
;
// title of the group
QCString
title
;
// title of the group
...
...
src/htmlgen.cpp
View file @
f38608d4
...
@@ -154,7 +154,7 @@ void HtmlGenerator::writeFooter(int part,bool external)
...
@@ -154,7 +154,7 @@ void HtmlGenerator::writeFooter(int part,bool external)
}
}
t
<<
"doxygen.gif
\"
alt=
\"
doxygen
\"
"
t
<<
"doxygen.gif
\"
alt=
\"
doxygen
\"
"
<<
"align=center border=0 "
<<
endl
<<
<<
"align=center border=0 "
<<
endl
<<
"width=11
8 height=53></a>
"
<<
versionString
<<
" "
;
"width=11
0 height=53></a>
"
<<
versionString
<<
" "
;
}
}
break
;
break
;
default
:
default
:
...
...
src/index.cpp
View file @
f38608d4
...
@@ -393,7 +393,8 @@ void writeFileIndex(OutputList &ol)
...
@@ -393,7 +393,8 @@ void writeFileIndex(OutputList &ol)
{
{
ol
.
docify
(
" ("
);
ol
.
docify
(
" ("
);
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
parseDoc
(
briefOutput
,
0
,
0
,
parseDoc
(
briefOutput
,
fd
->
absFilePath
(),
1
,
0
,
0
,
abbreviate
(
fd
->
briefDescription
(),
fd
->
name
()));
abbreviate
(
fd
->
briefDescription
(),
fd
->
name
()));
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
docify
(
")"
);
ol
.
docify
(
")"
);
...
@@ -432,7 +433,9 @@ void writeFileIndex(OutputList &ol)
...
@@ -432,7 +433,9 @@ void writeFileIndex(OutputList &ol)
{
{
ol
.
docify
(
" ("
);
ol
.
docify
(
" ("
);
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
parseDoc
(
briefOutput
,
0
,
0
,
parseDoc
(
briefOutput
,
fd
->
absFilePath
(),
1
,
0
,
0
,
abbreviate
(
fd
->
briefDescription
(),
fd
->
name
()));
abbreviate
(
fd
->
briefDescription
(),
fd
->
name
()));
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
docify
(
")"
);
ol
.
docify
(
")"
);
...
@@ -580,8 +583,10 @@ void writeNamespaceIndex(OutputList &ol)
...
@@ -580,8 +583,10 @@ void writeNamespaceIndex(OutputList &ol)
if
(
!
nd
->
briefDescription
().
isEmpty
())
if
(
!
nd
->
briefDescription
().
isEmpty
())
{
{
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
parseDoc
(
briefOutput
,
nd
->
name
(),
0
,
parseDoc
(
briefOutput
,
abbreviate
(
nd
->
briefDescription
(),
nd
->
name
()));
nd
->
getDefFileName
(),
nd
->
getDefLine
(),
nd
->
name
(),
0
,
abbreviate
(
nd
->
briefDescription
(),
nd
->
name
()));
ol
+=
briefOutput
;
ol
+=
briefOutput
;
}
}
else
else
...
@@ -654,8 +659,10 @@ void writeAnnotatedClassList(OutputList &ol)
...
@@ -654,8 +659,10 @@ void writeAnnotatedClassList(OutputList &ol)
if
(
!
cd
->
briefDescription
().
isEmpty
())
if
(
!
cd
->
briefDescription
().
isEmpty
())
{
{
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
parseDoc
(
briefOutput
,
cd
->
name
(),
0
,
parseDoc
(
briefOutput
,
abbreviate
(
cd
->
briefDescription
(),
cd
->
name
()));
cd
->
getDefFileName
(),
cd
->
getDefLine
(),
cd
->
name
(),
0
,
abbreviate
(
cd
->
briefDescription
(),
cd
->
name
()));
ol
+=
briefOutput
;
ol
+=
briefOutput
;
}
}
else
else
...
@@ -1454,10 +1461,15 @@ void writeGroupList(OutputList &ol)
...
@@ -1454,10 +1461,15 @@ void writeGroupList(OutputList &ol)
{
{
ol
.
startDescItem
();
ol
.
startDescItem
();
ol
.
startTextLink
(
gd
->
getOutputFileBase
(),
0
);
ol
.
startTextLink
(
gd
->
getOutputFileBase
(),
0
);
parseDoc
(
ol
,
0
,
0
,
gd
->
groupTitle
());
parseDoc
(
ol
,
gd
->
getDefFileName
(),
gd
->
getDefLine
(),
0
,
0
,
gd
->
groupTitle
());
ol
.
endTextLink
();
ol
.
endTextLink
();
ol
.
endDescItem
();
ol
.
endDescItem
();
parseDoc
(
ol
,
0
,
0
,
gd
->
briefDescription
());
parseDoc
(
ol
,
gd
->
getDefFileName
(),
gd
->
getDefLine
(),
0
,
0
,
gd
->
briefDescription
());
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
}
}
...
@@ -1517,6 +1529,11 @@ void writeIndex(OutputList &ol)
...
@@ -1517,6 +1529,11 @@ void writeIndex(OutputList &ol)
//ol.disable(OutputGenerator::Latex);
//ol.disable(OutputGenerator::Latex);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
QCString
defFileName
=
mainPage
?
mainPage
->
defFileName
.
data
()
:
"<generated>"
;
int
defLine
=
mainPage
?
mainPage
->
defLine
:
1
;
if
(
!
mainPage
||
mainPage
->
title
.
isEmpty
())
if
(
!
mainPage
||
mainPage
->
title
.
isEmpty
())
ol
.
startFile
(
"index"
,
"Main Index"
,
FALSE
);
ol
.
startFile
(
"index"
,
"Main Index"
,
FALSE
);
else
else
...
@@ -1526,7 +1543,7 @@ void writeIndex(OutputList &ol)
...
@@ -1526,7 +1543,7 @@ void writeIndex(OutputList &ol)
ol
.
startTitleHead
(
0
);
ol
.
startTitleHead
(
0
);
if
(
mainPage
&&
!
mainPage
->
title
.
isEmpty
())
if
(
mainPage
&&
!
mainPage
->
title
.
isEmpty
())
{
{
parseDoc
(
ol
,
0
,
0
,
mainPage
->
title
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
mainPage
->
title
);
}
}
else
else
{
{
...
@@ -1537,14 +1554,14 @@ void writeIndex(OutputList &ol)
...
@@ -1537,14 +1554,14 @@ void writeIndex(OutputList &ol)
if
(
!
Config
::
projectNumber
.
isEmpty
())
if
(
!
Config
::
projectNumber
.
isEmpty
())
{
{
ol
.
startProjectNumber
();
ol
.
startProjectNumber
();
parseDoc
(
ol
,
0
,
0
,
Config
::
projectNumber
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
Config
::
projectNumber
);
ol
.
endProjectNumber
();
ol
.
endProjectNumber
();
}
}
if
(
Config
::
noIndexFlag
)
writeQuickLinks
(
ol
,
FALSE
);
if
(
Config
::
noIndexFlag
)
writeQuickLinks
(
ol
,
FALSE
);
if
(
mainPage
)
if
(
mainPage
)
{
{
parseDoc
(
ol
,
0
,
0
,
mainPage
->
doc
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
mainPage
->
doc
);
}
}
endFile
(
ol
);
endFile
(
ol
);
...
@@ -1565,7 +1582,7 @@ void writeIndex(OutputList &ol)
...
@@ -1565,7 +1582,7 @@ void writeIndex(OutputList &ol)
if
(
!
Config
::
projectNumber
.
isEmpty
())
if
(
!
Config
::
projectNumber
.
isEmpty
())
{
{
ol
.
startProjectNumber
();
ol
.
startProjectNumber
();
parseDoc
(
ol
,
0
,
0
,
Config
::
projectNumber
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
Config
::
projectNumber
);
ol
.
endProjectNumber
();
ol
.
endProjectNumber
();
}
}
ol
.
endIndexSection
(
isTitlePageStart
);
ol
.
endIndexSection
(
isTitlePageStart
);
...
@@ -1577,7 +1594,7 @@ void writeIndex(OutputList &ol)
...
@@ -1577,7 +1594,7 @@ void writeIndex(OutputList &ol)
ol
.
startIndexSection
(
isMainPage
);
ol
.
startIndexSection
(
isMainPage
);
if
(
!
mainPage
->
title
.
isEmpty
())
if
(
!
mainPage
->
title
.
isEmpty
())
{
{
parseDoc
(
ol
,
0
,
0
,
mainPage
->
title
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
mainPage
->
title
);
}
}
else
else
{
{
...
@@ -1674,7 +1691,7 @@ void writeIndex(OutputList &ol)
...
@@ -1674,7 +1691,7 @@ void writeIndex(OutputList &ol)
ol
.
writeSection
(
si
->
label
,
si
->
title
,
FALSE
);
ol
.
writeSection
(
si
->
label
,
si
->
title
,
FALSE
);
}
}
ol
.
startTextBlock
();
ol
.
startTextBlock
();
parseDoc
(
ol
,
0
,
0
,
mainPage
->
doc
);
parseDoc
(
ol
,
defFileName
,
defLine
,
0
,
0
,
mainPage
->
doc
);
ol
.
endTextBlock
();
ol
.
endTextBlock
();
endFile
(
ol
);
endFile
(
ol
);
ol
.
enable
(
OutputGenerator
::
Man
);
ol
.
enable
(
OutputGenerator
::
Man
);
...
...
src/latexgen.cpp
View file @
f38608d4
...
@@ -596,7 +596,7 @@ void LatexGenerator::writeStyleInfo(int part)
...
@@ -596,7 +596,7 @@ void LatexGenerator::writeStyleInfo(int part)
t
<<
"
\\
newenvironment{CompactItemize}
\n
"
;
t
<<
"
\\
newenvironment{CompactItemize}
\n
"
;
t
<<
"{
\n
"
;
t
<<
"{
\n
"
;
t
<<
"
\\
begin{itemize}
\n
"
;
t
<<
"
\\
begin{itemize}
\n
"
;
t
<<
"
\\
setlength{
\\
itemsep}{-
4
pt}
\n
"
;
t
<<
"
\\
setlength{
\\
itemsep}{-
3
pt}
\n
"
;
t
<<
"
\\
setlength{
\\
parsep}{0pt}
\n
"
;
t
<<
"
\\
setlength{
\\
parsep}{0pt}
\n
"
;
t
<<
"
\\
setlength{
\\
topsep}{0pt}
\n
"
;
t
<<
"
\\
setlength{
\\
topsep}{0pt}
\n
"
;
t
<<
"
\\
setlength{
\\
partopsep}{0pt}
\n
"
;
t
<<
"
\\
setlength{
\\
partopsep}{0pt}
\n
"
;
...
...
src/logos.cpp
View file @
f38608d4
This diff is collapsed.
Click to expand it.
src/memberdef.cpp
View file @
f38608d4
...
@@ -225,12 +225,13 @@ static void writeTemplatePrefix(OutputList &ol,ArgumentList *al,bool br=TRUE)
...
@@ -225,12 +225,13 @@ static void writeTemplatePrefix(OutputList &ol,ArgumentList *al,bool br=TRUE)
* all types.
* all types.
*/
*/
MemberDef
::
MemberDef
(
const
char
*
t
,
const
char
*
na
,
const
char
*
a
,
const
char
*
e
,
MemberDef
::
MemberDef
(
const
char
*
df
,
int
dl
,
const
char
*
t
,
const
char
*
na
,
const
char
*
a
,
const
char
*
e
,
Protection
p
,
Specifier
v
,
bool
s
,
bool
r
,
MemberType
mt
,
Protection
p
,
Specifier
v
,
bool
s
,
bool
r
,
MemberType
mt
,
const
ArgumentList
*
tal
,
const
ArgumentList
*
al
const
ArgumentList
*
tal
,
const
ArgumentList
*
al
)
:
Definition
(
substituteClassNames
(
na
))
)
:
Definition
(
df
,
dl
,
substituteClassNames
(
na
))
{
{
//printf("++++++ MemberDef(%s
,%s,%s) ++++++ \n",t,na,a
);
//printf("++++++ MemberDef(%s
file=%s,line=%d) ++++++ \n",na,df,dl
);
classDef
=
0
;
classDef
=
0
;
fileDef
=
0
;
fileDef
=
0
;
fileDec
=
0
;
fileDec
=
0
;
...
@@ -251,7 +252,6 @@ MemberDef::MemberDef(const char *t,const char *na,const char *a,const char *e,
...
@@ -251,7 +252,6 @@ MemberDef::MemberDef(const char *t,const char *na,const char *a,const char *e,
args
=
substituteClassNames
(
a
);
args
=
substituteClassNames
(
a
);
if
(
type
.
isNull
())
decl
=
name
()
+
args
;
else
decl
=
type
+
" "
+
name
()
+
args
;
if
(
type
.
isNull
())
decl
=
name
()
+
args
;
else
decl
=
type
+
" "
+
name
()
+
args
;
declLine
=
0
;
declLine
=
0
;
defLine
=
0
;
memberGroup
=
0
;
memberGroup
=
0
;
virt
=
v
;
virt
=
v
;
prot
=
p
;
prot
=
p
;
...
@@ -395,8 +395,10 @@ QCString MemberDef::getOutputFileBase() const
...
@@ -395,8 +395,10 @@ QCString MemberDef::getOutputFileBase() const
{
{
return
nspace
->
getOutputFileBase
();
return
nspace
->
getOutputFileBase
();
}
}
warn
(
"Warning: Internal inconsistency: member %s does not belong to any
\n
"
warn
(
defFileName
,
defLine
,
" container!
\n
"
,
name
().
data
());
"Warning: Internal inconsistency: member %s does not belong to any"
" container!"
,
name
().
data
()
);
return
"dummy"
;
return
"dummy"
;
}
}
...
@@ -773,7 +775,7 @@ void MemberDef::writeDeclaration(OutputList &ol,
...
@@ -773,7 +775,7 @@ void MemberDef::writeDeclaration(OutputList &ol,
if
(
!
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
&&
!
annMemb
)
if
(
!
briefDescription
().
isEmpty
()
&&
Config
::
briefMemDescFlag
&&
!
annMemb
)
{
{
ol
.
startMemberDescription
();
ol
.
startMemberDescription
();
parseDoc
(
ol
,
cname
,
name
(),
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
cname
,
name
(),
briefDescription
());
if
(
/*!documentation().isEmpty()*/
detailsAreVisible
())
if
(
/*!documentation().isEmpty()*/
detailsAreVisible
())
{
{
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
...
@@ -1044,14 +1046,14 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
...
@@ -1044,14 +1046,14 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
)
/* || !annMemb */
)
/* || !annMemb */
)
)
{
{
parseDoc
(
ol
,
scopeName
,
name
(),
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
scopeName
,
name
(),
briefDescription
());
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
/* write detailed description */
/* write detailed description */
if
(
!
documentation
().
isEmpty
())
if
(
!
documentation
().
isEmpty
())
{
{
parseDoc
(
ol
,
scopeName
,
name
(),
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
defFileName
,
defLine
,
scopeName
,
name
(),
documentation
()
+
"
\n
"
);
ol
.
pushGeneratorState
();
ol
.
pushGeneratorState
();
ol
.
disableAllBut
(
OutputGenerator
::
RTF
);
ol
.
disableAllBut
(
OutputGenerator
::
RTF
);
ol
.
newParagraph
();
ol
.
newParagraph
();
...
@@ -1083,7 +1085,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
...
@@ -1083,7 +1085,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
ol
.
endEmphasis
();
ol
.
endEmphasis
();
ol
.
endDescTableTitle
();
ol
.
endDescTableTitle
();
ol
.
startDescTableData
();
ol
.
startDescTableData
();
parseDoc
(
ol
,
scopeName
,
name
(),
a
->
docs
);
parseDoc
(
ol
,
defFileName
,
defLine
,
scopeName
,
name
(),
a
->
docs
);
ol
.
endDescTableData
();
ol
.
endDescTableData
();
}
}
}
}
...
@@ -1138,7 +1140,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
...
@@ -1138,7 +1140,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
if
(
!
fmd
->
briefDescription
().
isEmpty
())
if
(
!
fmd
->
briefDescription
().
isEmpty
())
{
{
parseDoc
(
ol
,
scopeName
,
fmd
->
name
(),
fmd
->
briefDescription
());
parseDoc
(
ol
,
defFileName
,
defLine
,
scopeName
,
fmd
->
name
(),
fmd
->
briefDescription
());
//ol.newParagraph();
//ol.newParagraph();
}
}
if
(
!
fmd
->
briefDescription
().
isEmpty
()
&&
if
(
!
fmd
->
briefDescription
().
isEmpty
()
&&
...
@@ -1148,7 +1150,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
...
@@ -1148,7 +1150,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
}
}
if
(
!
fmd
->
documentation
().
isEmpty
())
if
(
!
fmd
->
documentation
().
isEmpty
())
{
{
parseDoc
(
ol
,
scopeName
,
fmd
->
name
(),
fmd
->
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
defFileName
,
defLine
,
scopeName
,
fmd
->
name
(),
fmd
->
documentation
()
+
"
\n
"
);
}
}
ol
.
endDescTableData
();
ol
.
endDescTableData
();
}
}
...
@@ -1329,7 +1331,7 @@ void MemberDef::warnIfUndocumented()
...
@@ -1329,7 +1331,7 @@ void MemberDef::warnIfUndocumented()
t
=
"group"
,
d
=
gd
;
t
=
"group"
,
d
=
gd
;
if
(
d
&&
d
->
isLinkable
()
&&
!
isLinkable
()
&&
name
().
find
(
'@'
)
==-
1
)
if
(
d
&&
d
->
isLinkable
()
&&
!
isLinkable
()
&&
name
().
find
(
'@'
)
==-
1
)
warn
(
"Warning: Member %s of %s %s is not documented
\n
"
,
warn
_undoc
(
defFileName
,
defLine
,
"Warning: Member %s of %s %s is not documented.
"
,
name
().
data
(),
t
,
d
->
name
().
data
());
name
().
data
(),
t
,
d
->
name
().
data
());
}
}
...
...
src/memberdef.h
View file @
f38608d4
...
@@ -59,7 +59,8 @@ class MemberDef : public Definition
...
@@ -59,7 +59,8 @@ class MemberDef : public Definition
// initialization
// initialization
};
};
MemberDef
(
const
char
*
type
,
const
char
*
name
,
const
char
*
args
,
MemberDef
(
const
char
*
defFileName
,
int
defLine
,
const
char
*
type
,
const
char
*
name
,
const
char
*
args
,
const
char
*
excp
,
Protection
prot
,
Specifier
virt
,
bool
stat
,
const
char
*
excp
,
Protection
prot
,
Specifier
virt
,
bool
stat
,
bool
related
,
MemberType
t
,
const
ArgumentList
*
tal
,
bool
related
,
MemberType
t
,
const
ArgumentList
*
tal
,
const
ArgumentList
*
al
);
const
ArgumentList
*
al
);
...
@@ -96,8 +97,8 @@ class MemberDef : public Definition
...
@@ -96,8 +97,8 @@ class MemberDef : public Definition
MemberList
*
getSectionList
()
const
{
return
section
;
}
MemberList
*
getSectionList
()
const
{
return
section
;
}
void
setMemberType
(
MemberType
t
)
{
mtype
=
t
;
}
void
setMemberType
(
MemberType
t
)
{
mtype
=
t
;
}
void
setDefinition
(
const
char
*
d
)
{
def
=
d
;
}
void
setDefinition
(
const
char
*
d
)
{
def
=
d
;
}
void
setDefFile
(
const
char
*
f
)
{
defFile
=
f
;
}
//
void setDefFile(const char *f) { defFile=f; }
void
setDefLine
(
int
l
)
{
defLine
=
l
;
}
//
void setDefLine(int l) { defLine=l; }
void
setFileDef
(
FileDef
*
fd
)
{
fileDef
=
fd
;
}
void
setFileDef
(
FileDef
*
fd
)
{
fileDef
=
fd
;
}
void
setFileDec
(
FileDef
*
fd
)
{
fileDec
=
fd
;
}
void
setFileDec
(
FileDef
*
fd
)
{
fileDec
=
fd
;
}
void
setAnchor
(
const
char
*
a
)
{
anc
=
a
;
}
void
setAnchor
(
const
char
*
a
)
{
anc
=
a
;
}
...
@@ -143,10 +144,8 @@ class MemberDef : public Definition
...
@@ -143,10 +144,8 @@ class MemberDef : public Definition
ExampleList
*
getExampleList
()
const
{
return
exampleList
;
}
ExampleList
*
getExampleList
()
const
{
return
exampleList
;
}
// prototype related members
// prototype related members
const
char
*
getDefFile
()
{
return
defFile
;
}
//void setDecFile(const char *f) { declFile=f; }
int
getDefLine
()
{
return
defLine
;
}
//void setDecLine(int l) { defLine=l; }
void
setDecFile
(
const
char
*
f
)
{
declFile
=
f
;
}
void
setDecLine
(
int
l
)
{
defLine
=
l
;
}
// convenience members
// convenience members
bool
isSignal
()
const
{
return
mtype
==
Signal
;
}
bool
isSignal
()
const
{
return
mtype
==
Signal
;
}
...
@@ -219,8 +218,8 @@ class MemberDef : public Definition
...
@@ -219,8 +218,8 @@ class MemberDef : public Definition
QCString
declFile
;
// file where the declaration was found
QCString
declFile
;
// file where the declaration was found
int
declLine
;
// line where the declaration was found
int
declLine
;
// line where the declaration was found
QCString
def
;
// member definition in code (fully qualified name)
QCString
def
;
// member definition in code (fully qualified name)
QCString
defFile
;
// file where the definition was found
//
QCString defFile; // file where the definition was found
int
defLine
;
// line where the definition was found
//
int defLine; // line where the definition was found
QCString
anc
;
// HTML anchor name
QCString
anc
;
// HTML anchor name
Specifier
virt
;
// normal/virtual/pure virtual
Specifier
virt
;
// normal/virtual/pure virtual
Protection
prot
;
// protection type [Public/Protected/Private]
Protection
prot
;
// protection type [Public/Protected/Private]
...
...
src/membergroup.cpp
View file @
f38608d4
...
@@ -75,7 +75,7 @@ void MemberGroup::setAnchors()
...
@@ -75,7 +75,7 @@ void MemberGroup::setAnchors()
void
MemberGroup
::
writeDeclarations
(
OutputList
&
ol
,
void
MemberGroup
::
writeDeclarations
(
OutputList
&
ol
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
)
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
)
{
{
memberList
->
writeDeclarations
(
ol
,
cd
,
nd
,
fd
,
gd
,
grpHeader
,
doc
,
TRUE
);
memberList
->
writeDeclarations
(
ol
,
cd
,
nd
,
fd
,
gd
,
grpHeader
,
doc
,
TRUE
,
TRUE
);
}
}
void
MemberGroup
::
writePlainDeclarations
(
OutputList
&
ol
,
void
MemberGroup
::
writePlainDeclarations
(
OutputList
&
ol
,
...
@@ -101,8 +101,26 @@ int MemberGroup::countDecMembers()
...
@@ -101,8 +101,26 @@ int MemberGroup::countDecMembers()
{
{
if
(
numDeclMembers
==-
1
)
/* number of member not cached */
if
(
numDeclMembers
==-
1
)
/* number of member not cached */
{
{
memberList
->
countDecMembers
(
TRUE
);
memberList
->
countDecMembers
(
TRUE
,
TRUE
);
numDeclMembers
=
memberList
->
totalCount
();
numDeclMembers
=
memberList
->
totalCount
();
}
}
return
numDeclMembers
;
return
numDeclMembers
;
}
}
void
MemberGroup
::
distributeMemberGroupDocumentation
()
{
MemberDef
*
md
=
memberList
->
first
();
if
(
md
&&
md
->
hasDocumentation
())
{
MemberDef
*
omd
=
memberList
->
next
();
while
(
omd
)
{
if
(
!
omd
->
hasDocumentation
())
{
omd
->
setBriefDescription
(
md
->
briefDescription
());
omd
->
setDocumentation
(
md
->
documentation
());
}
omd
=
memberList
->
next
();
}
}
}
src/membergroup.h
View file @
f38608d4
...
@@ -53,6 +53,7 @@ class MemberGroup /* : public Definition */
...
@@ -53,6 +53,7 @@ class MemberGroup /* : public Definition */
bool
allMembersInSameSection
()
{
return
inSameSection
;
}
bool
allMembersInSameSection
()
{
return
inSameSection
;
}
void
addToDeclarationSection
();
void
addToDeclarationSection
();
int
countDecMembers
();
int
countDecMembers
();
void
distributeMemberGroupDocumentation
();
private
:
private
:
MemberList
*
memberList
;
// list of all members in the group
MemberList
*
memberList
;
// list of all members in the group
...
...
src/memberlist.cpp
View file @
f38608d4
...
@@ -44,13 +44,16 @@ int MemberList::compareItems(GCI item1, GCI item2)
...
@@ -44,13 +44,16 @@ int MemberList::compareItems(GCI item1, GCI item2)
return
strcmp
(
c1
->
name
(),
c2
->
name
());
return
strcmp
(
c1
->
name
(),
c2
->
name
());
}
}
void
MemberList
::
countDecMembers
(
bool
inGroup
)
void
MemberList
::
countDecMembers
(
bool
inGroup
,
bool
countSubGroups
)
{
{
//printf("----- countDecMembers ----\n");
varCnt
=
funcCnt
=
enumCnt
=
enumValCnt
=
typeCnt
=
protoCnt
=
defCnt
=
friendCnt
=
0
;
varCnt
=
funcCnt
=
enumCnt
=
enumValCnt
=
typeCnt
=
protoCnt
=
defCnt
=
friendCnt
=
0
;
m_count
=
0
;
m_count
=
0
;
MemberDef
*
md
=
first
();
MemberDef
*
md
=
first
();
while
(
md
)
while
(
md
)
{
{
//printf("md=%p md->name()=`%s' inGroup=%d getMemberGroup()=%p\n",
// md,md->name().data(),inGroup,md->getMemberGroup());
if
(
!
(
md
->
memberClass
()
==
0
&&
md
->
isStatic
()
&&
!
Config
::
extractPrivateFlag
)
&&
if
(
!
(
md
->
memberClass
()
==
0
&&
md
->
isStatic
()
&&
!
Config
::
extractPrivateFlag
)
&&
(
!
Config
::
hideMemberFlag
||
md
->
hasDocumentation
())
&&
(
!
Config
::
hideMemberFlag
||
md
->
hasDocumentation
())
&&
(
(
...
@@ -60,7 +63,8 @@ void MemberList::countDecMembers(bool inGroup)
...
@@ -60,7 +63,8 @@ void MemberList::countDecMembers(bool inGroup)
(
md
->
isEnumerate
()
&&
(
md
->
isEnumerate
()
&&
md
->
hasDocumentedEnumValues
()
md
->
hasDocumentedEnumValues
()
)
)
)
&&
inGroup
==
(
md
->
getMemberGroup
()
!=
0
)
&&
)
&&
inGroup
==
(
md
->
getMemberGroup
()
!=
0
)
&&
!
(
inGroup
&&
md
->
protection
()
==
Private
&&
!
Config
::
extractPrivateFlag
)
!
(
inGroup
&&
md
->
protection
()
==
Private
&&
!
Config
::
extractPrivateFlag
)
)
)
{
{
...
@@ -88,17 +92,18 @@ void MemberList::countDecMembers(bool inGroup)
...
@@ -88,17 +92,18 @@ void MemberList::countDecMembers(bool inGroup)
}
}
md
=
next
();
md
=
next
();
}
}
if
(
memberGroupList
&&
!
inGroup
)
if
(
memberGroupList
&&
countSubGroups
)
{
{
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroup
*
mg
;
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
{
//printf("memberGroupList adding %d inGroup=%d\n",
int
mgCount
=
mg
->
countDecMembers
();
//
mg->countDecMembers(),m_count
);
//
printf("memberGroupList adding %d inGroup=%d\n",mgCount,inGroup
);
m_count
+=
mg
->
countDecMembers
()
;
m_count
+=
mg
Count
;
}
}
}
}
//printf("----- end countDecMembers ----\n");
//printf("MemberList::countDecMembers(%d)=%d\n",inGroup,m_count);
//printf("MemberList::countDecMembers(%d)=%d\n",inGroup,m_count);
}
}
...
@@ -147,12 +152,13 @@ MemberListIterator::MemberListIterator(const QList<MemberDef> &l) :
...
@@ -147,12 +152,13 @@ MemberListIterator::MemberListIterator(const QList<MemberDef> &l) :
void
MemberList
::
writePlainDeclarations
(
OutputList
&
ol
,
void
MemberList
::
writePlainDeclarations
(
OutputList
&
ol
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
bool
inGroup
bool
inGroup
,
bool
countSubGroups
)
)
{
{
countDecMembers
(
inGroup
);
//printf("----- writePlainDeclaration() ----\n"
);
//printf("writePlainDeclaration() totalCount()=%d defineCount()=%d\n",totalCount(),defineCount()
);
countDecMembers
(
inGroup
,
countSubGroups
);
if
(
totalCount
()
==
0
)
return
;
// no members in this list
if
(
totalCount
()
==
0
)
return
;
// no members in this list
//printf("----> writePlainDeclaration() inGroup=%d totalCount()=%d\n",inGroup,totalCount());
ol
.
pushGeneratorState
();
ol
.
pushGeneratorState
();
...
@@ -163,6 +169,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -163,6 +169,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
defineCount
()
>
0
)
if
(
defineCount
()
>
0
)
{
{
//printf("There are %d defines\n",defineCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -191,6 +198,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -191,6 +198,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
protoCount
()
>
0
)
if
(
protoCount
()
>
0
)
{
{
//printf("There are %d prototypes\n",protoCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -214,6 +222,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -214,6 +222,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
typedefCount
()
>
0
)
if
(
typedefCount
()
>
0
)
{
{
//printf("There are %d typedefs\n",typedefCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -236,6 +245,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -236,6 +245,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
// write enums
// write enums
if
(
enumCount
()
>
0
)
if
(
enumCount
()
>
0
)
{
{
//printf("There are %d enums\n",enumCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -357,6 +367,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -357,6 +367,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
{
{
ol
.
startMemberDescription
();
ol
.
startMemberDescription
();
parseDoc
(
ol
,
parseDoc
(
ol
,
md
->
getDefFileName
(),
md
->
getDefLine
(),
cd
?
cd
->
name
().
data
()
:
0
,
md
->
name
().
data
(),
cd
?
cd
->
name
().
data
()
:
0
,
md
->
name
().
data
(),
md
->
briefDescription
()
md
->
briefDescription
()
);
);
...
@@ -384,6 +395,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -384,6 +395,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
// write functions
// write functions
if
(
funcCount
()
>
0
)
if
(
funcCount
()
>
0
)
{
{
//printf("There are %d functions\n",funcCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -408,6 +420,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -408,6 +420,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
friendCount
()
>
0
)
if
(
friendCount
()
>
0
)
{
{
//printf("There are %d friends\n",friendCount());
MemberListIterator
mli
(
*
this
);
MemberListIterator
mli
(
*
this
);
for
(
;
(
md
=
mli
.
current
())
;
++
mli
)
for
(
;
(
md
=
mli
.
current
())
;
++
mli
)
{
{
...
@@ -455,6 +468,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -455,6 +468,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
// write variables
// write variables
if
(
varCount
()
>
0
)
if
(
varCount
()
>
0
)
{
{
//printf("There are %d variables\n",varCount());
if
(
sectionPerType
)
if
(
sectionPerType
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -483,6 +497,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -483,6 +497,7 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
md
->
fromAnnonymousScope
()
&&
!
md
->
annonymousDeclShown
()
if
(
md
->
fromAnnonymousScope
()
&&
!
md
->
annonymousDeclShown
()
&&
inGroup
==
(
md
->
getMemberGroup
()
!=
0
))
&&
inGroup
==
(
md
->
getMemberGroup
()
!=
0
))
{
{
//printf("annonymous compound members\n");
md
->
setFromAnnonymousScope
(
FALSE
);
md
->
setFromAnnonymousScope
(
FALSE
);
md
->
writeDeclaration
(
ol
,
cd
,
nd
,
fd
,
gd
,
inGroup
);
md
->
writeDeclaration
(
ol
,
cd
,
nd
,
fd
,
gd
,
inGroup
);
md
->
setFromAnnonymousScope
(
TRUE
);
md
->
setFromAnnonymousScope
(
TRUE
);
...
@@ -493,16 +508,28 @@ void MemberList::writePlainDeclarations(OutputList &ol,
...
@@ -493,16 +508,28 @@ void MemberList::writePlainDeclarations(OutputList &ol,
if
(
!
sectionPerType
)
{
ol
.
endMemberList
();
/*ol.writeChar('\n');*/
}
if
(
!
sectionPerType
)
{
ol
.
endMemberList
();
/*ol.writeChar('\n');*/
}
ol
.
popGeneratorState
();
ol
.
popGeneratorState
();
//printf("----- end writePlainDeclaration() ----\n");
}
}
void
MemberList
::
writeDeclarations
(
OutputList
&
ol
,
void
MemberList
::
writeDeclarations
(
OutputList
&
ol
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
const
char
*
title
,
const
char
*
subtitle
,
bool
inGroup
)
const
char
*
title
,
const
char
*
subtitle
,
bool
inGroup
,
bool
countSubGroups
)
{
{
//printf("MemberList::writeDeclaration(title=`%s',subtitle=`%s')\n",
//printf("MemberList::writeDeclaration(title=`%s',subtitle=`%s')\n",title,subtitle);
// title,subtitle);
//printf("----- writeDeclaration() ----\n");
countDecMembers
(
inGroup
);
countDecMembers
(
FALSE
,
countSubGroups
);
// count member not in group
if
(
totalCount
()
==
0
)
return
;
int
normalMembers
=
totalCount
();
int
ingroupMembers
=
0
;
//printf("Normal members %d\n",normalMembers);
if
(
inGroup
)
{
countDecMembers
(
TRUE
,
countSubGroups
);
// count member inside group
ingroupMembers
=
totalCount
();
}
int
totalMembers
=
normalMembers
+
ingroupMembers
;
//printf("Total members %d\n",totalMembers);
if
(
totalMembers
==
0
)
return
;
if
(
title
)
if
(
title
)
{
{
ol
.
startMemberHeader
();
ol
.
startMemberHeader
();
...
@@ -514,13 +541,13 @@ void MemberList::writeDeclarations(OutputList &ol,
...
@@ -514,13 +541,13 @@ void MemberList::writeDeclarations(OutputList &ol,
//printf("subtitle=`%s'\n",subtitle);
//printf("subtitle=`%s'\n",subtitle);
ol
.
startMemberSubtitle
();
ol
.
startMemberSubtitle
();
if
(
inGroup
)
if
(
inGroup
)
parseDoc
(
ol
,
0
,
0
,
subtitle
);
parseDoc
(
ol
,
"<generated>"
,
1
,
0
,
0
,
subtitle
);
else
else
parseText
(
ol
,
subtitle
);
parseText
(
ol
,
subtitle
);
ol
.
endMemberSubtitle
();
ol
.
endMemberSubtitle
();
}
}
writePlainDeclarations
(
ol
,
cd
,
nd
,
fd
,
gd
,
inGroup
);
writePlainDeclarations
(
ol
,
cd
,
nd
,
fd
,
gd
,
inGroup
,
FALSE
);
if
(
memberGroupList
)
if
(
memberGroupList
)
{
{
...
@@ -530,13 +557,17 @@ void MemberList::writeDeclarations(OutputList &ol,
...
@@ -530,13 +557,17 @@ void MemberList::writeDeclarations(OutputList &ol,
while
((
mg
=
mgli
.
current
()))
while
((
mg
=
mgli
.
current
()))
{
{
ol
.
startMemberGroupHeader
();
ol
.
startMemberGroupHeader
();
parseText
(
ol
,
mg
->
header
());
if
(
mg
->
header
()
!=
"[NOHEADER]"
)
{
parseText
(
ol
,
mg
->
header
());
}
ol
.
endMemberGroupHeader
();
ol
.
endMemberGroupHeader
();
if
(
!
mg
->
documentation
().
isEmpty
())
if
(
!
mg
->
documentation
().
isEmpty
())
{
{
//printf("Member group has docs!\n");
//printf("Member group has docs!\n");
ol
.
startMemberGroupDocs
();
ol
.
startMemberGroupDocs
();
parseDoc
(
ol
,
0
,
0
,
mg
->
documentation
());
parseDoc
(
ol
,
"<generated>"
,
1
,
0
,
0
,
mg
->
documentation
());
ol
.
endMemberGroupDocs
();
ol
.
endMemberGroupDocs
();
}
}
ol
.
startMemberGroup
();
ol
.
startMemberGroup
();
...
@@ -545,6 +576,7 @@ void MemberList::writeDeclarations(OutputList &ol,
...
@@ -545,6 +576,7 @@ void MemberList::writeDeclarations(OutputList &ol,
ol
.
endMemberGroup
(
mgli
.
current
()
==
0
);
ol
.
endMemberGroup
(
mgli
.
current
()
==
0
);
}
}
}
}
//printf("----- end writeDeclaration() ----\n");
}
}
...
...
src/memberlist.h
View file @
f38608d4
...
@@ -41,7 +41,7 @@ class MemberList : public QList<MemberDef>
...
@@ -41,7 +41,7 @@ class MemberList : public QList<MemberDef>
int
protoCount
()
const
{
return
protoCnt
;
}
int
protoCount
()
const
{
return
protoCnt
;
}
int
defineCount
()
const
{
return
defCnt
;
}
int
defineCount
()
const
{
return
defCnt
;
}
int
friendCount
()
const
{
return
friendCnt
;
}
int
friendCount
()
const
{
return
friendCnt
;
}
void
countDecMembers
(
bool
inGroup
);
void
countDecMembers
(
bool
inGroup
,
bool
countSubGroups
);
void
countDocMembers
();
void
countDocMembers
();
int
totalCount
()
const
int
totalCount
()
const
{
return
//varCnt+funcCnt+enumCnt+enumValCnt+typeCnt+
{
return
//varCnt+funcCnt+enumCnt+enumValCnt+typeCnt+
...
@@ -50,10 +50,11 @@ class MemberList : public QList<MemberDef>
...
@@ -50,10 +50,11 @@ class MemberList : public QList<MemberDef>
}
}
void
writePlainDeclarations
(
OutputList
&
ol
,
void
writePlainDeclarations
(
OutputList
&
ol
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
bool
inGroup
=
FALSE
);
bool
inGroup
=
FALSE
,
bool
countSubGroups
=
TRUE
);
void
writeDeclarations
(
OutputList
&
ol
,
void
writeDeclarations
(
OutputList
&
ol
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
ClassDef
*
cd
,
NamespaceDef
*
nd
,
FileDef
*
fd
,
GroupDef
*
gd
,
const
char
*
title
,
const
char
*
subtitle
,
bool
inGroup
=
FALSE
);
const
char
*
title
,
const
char
*
subtitle
,
bool
inGroup
=
FALSE
,
bool
countSubGroups
=
TRUE
);
void
writeDocumentation
(
OutputList
&
ol
,
const
char
*
scopeName
void
writeDocumentation
(
OutputList
&
ol
,
const
char
*
scopeName
/*,MemberDef::MemberType m*/
);
/*,MemberDef::MemberType m*/
);
void
addMemberGroup
(
MemberGroup
*
mg
);
void
addMemberGroup
(
MemberGroup
*
mg
);
...
...
src/message.cpp
View file @
f38608d4
...
@@ -18,6 +18,57 @@
...
@@ -18,6 +18,57 @@
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include "config.h"
#include "config.h"
#include <qregexp.h>
static
QCString
outputFormat
;
static
int
warnFormatOrder
;
// 1 = $file,$line,$text
// 2 = $text,$line,$file
// 3 = $line,$text,$file
// 4 = $file,$text,$line
// 5 = $text,$file,$line
// 6 = $line,$file,$text
void
initWarningFormat
()
{
int
filePos
=
Config
::
warnFormat
.
find
(
"$file"
);
int
linePos
=
Config
::
warnFormat
.
find
(
"$line"
);
int
textPos
=
Config
::
warnFormat
.
find
(
"$text"
);
// sort items on position (there are 6 cases)
warnFormatOrder
=
1
;
if
(
filePos
>
linePos
&&
filePos
>
textPos
)
{
if
(
linePos
>
textPos
)
// $text,$line,$file
{
warnFormatOrder
=
2
;
}
else
// $line,$text,$file
{
warnFormatOrder
=
3
;
}
}
else
if
(
filePos
<
linePos
&&
filePos
<
textPos
)
{
if
(
linePos
>
textPos
)
// $file,$text,$line
{
warnFormatOrder
=
4
;
}
}
else
if
(
filePos
<
linePos
&&
filePos
>
textPos
)
// $text,$file,$line
{
warnFormatOrder
=
5
;
}
else
// $line,$file,$text
{
warnFormatOrder
=
6
;
}
outputFormat
=
Config
::
warnFormat
.
replace
(
QRegExp
(
"
\\
$file"
),
"%s"
).
replace
(
QRegExp
(
"
\\
$text"
),
"%s"
).
replace
(
QRegExp
(
"
\\
$line"
),
"%d"
)
+
'\n'
;
}
void
msg
(
const
char
*
fmt
,
...)
void
msg
(
const
char
*
fmt
,
...)
{
{
...
@@ -30,7 +81,31 @@ void msg(const char *fmt, ...)
...
@@ -30,7 +81,31 @@ void msg(const char *fmt, ...)
}
}
}
}
void
warn
(
const
char
*
fmt
,
...)
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...)
{
if
(
Config
::
warningFlag
)
{
if
(
file
==
0
)
file
=
"<unknwon>"
;
char
text
[
4096
];
va_list
args
;
va_start
(
args
,
fmt
);
vsprintf
(
text
,
fmt
,
args
);
va_end
(
args
);
switch
(
warnFormatOrder
)
{
case
1
:
fprintf
(
stderr
,
outputFormat
,
file
,
line
,
text
);
break
;
case
2
:
fprintf
(
stderr
,
outputFormat
,
text
,
line
,
file
);
break
;
case
3
:
fprintf
(
stderr
,
outputFormat
,
line
,
text
,
file
);
break
;
case
4
:
fprintf
(
stderr
,
outputFormat
,
file
,
text
,
line
);
break
;
case
5
:
fprintf
(
stderr
,
outputFormat
,
text
,
file
,
line
);
break
;
case
6
:
fprintf
(
stderr
,
outputFormat
,
line
,
file
,
text
);
break
;
default:
printf
(
"Error: warning format has not been initialized!
\n
"
);
}
}
}
void
warn_cont
(
const
char
*
fmt
,
...)
{
{
if
(
Config
::
warningFlag
)
if
(
Config
::
warningFlag
)
{
{
...
@@ -41,6 +116,30 @@ void warn(const char *fmt, ...)
...
@@ -41,6 +116,30 @@ void warn(const char *fmt, ...)
}
}
}
}
void
warn_undoc
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...)
{
if
(
Config
::
warningUndocFlag
)
{
if
(
file
==
0
)
file
=
"<unknwon>"
;
char
text
[
4096
];
va_list
args
;
va_start
(
args
,
fmt
);
vsprintf
(
text
,
fmt
,
args
);
va_end
(
args
);
switch
(
warnFormatOrder
)
{
case
1
:
fprintf
(
stderr
,
outputFormat
,
file
,
line
,
text
);
break
;
case
2
:
fprintf
(
stderr
,
outputFormat
,
text
,
line
,
file
);
break
;
case
3
:
fprintf
(
stderr
,
outputFormat
,
line
,
text
,
file
);
break
;
case
4
:
fprintf
(
stderr
,
outputFormat
,
file
,
text
,
line
);
break
;
case
5
:
fprintf
(
stderr
,
outputFormat
,
text
,
file
,
line
);
break
;
case
6
:
fprintf
(
stderr
,
outputFormat
,
line
,
file
,
text
);
break
;
default:
printf
(
"Error: warning format has not been initialized!
\n
"
);
}
}
}
void
err
(
const
char
*
fmt
,
...)
void
err
(
const
char
*
fmt
,
...)
{
{
va_list
args
;
va_list
args
;
...
...
src/message.h
View file @
f38608d4
...
@@ -19,7 +19,10 @@
...
@@ -19,7 +19,10 @@
#define MESSAGE_H
#define MESSAGE_H
extern
void
msg
(
const
char
*
fmt
,
...);
extern
void
msg
(
const
char
*
fmt
,
...);
extern
void
warn
(
const
char
*
fmt
,
...);
extern
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...);
extern
void
warn_cont
(
const
char
*
fmt
,
...);
extern
void
warn_undoc
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...);
extern
void
err
(
const
char
*
fmt
,
...);
extern
void
err
(
const
char
*
fmt
,
...);
void
initWarningFormat
();
#endif
#endif
src/namespacedef.cpp
View file @
f38608d4
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
#include "doxygen.h"
#include "doxygen.h"
#include "message.h"
#include "message.h"
NamespaceDef
::
NamespaceDef
(
const
char
*
name
,
const
char
*
ref
)
:
Definition
(
name
)
NamespaceDef
::
NamespaceDef
(
const
char
*
df
,
int
dl
,
const
char
*
name
,
const
char
*
ref
)
:
Definition
(
df
,
dl
,
name
)
{
{
fileName
=
"namespace_"
+
nameToFile
(
name
);
fileName
=
"namespace_"
+
nameToFile
(
name
);
classList
=
new
ClassList
;
classList
=
new
ClassList
;
...
@@ -38,6 +40,8 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name)
...
@@ -38,6 +40,8 @@ NamespaceDef::NamespaceDef(const char *name,const char *ref) : Definition(name)
memberGroupList
=
new
MemberGroupList
;
memberGroupList
=
new
MemberGroupList
;
memberGroupList
->
setAutoDelete
(
TRUE
);
memberGroupList
->
setAutoDelete
(
TRUE
);
memberGroupDict
=
new
MemberGroupDict
(
1009
);
memberGroupDict
=
new
MemberGroupDict
(
1009
);
defFileName
=
df
;
defLine
=
dl
;
}
}
NamespaceDef
::~
NamespaceDef
()
NamespaceDef
::~
NamespaceDef
()
...
@@ -49,6 +53,15 @@ NamespaceDef::~NamespaceDef()
...
@@ -49,6 +53,15 @@ NamespaceDef::~NamespaceDef()
delete
memberGroupDict
;
delete
memberGroupDict
;
}
}
void
NamespaceDef
::
distributeMemberGroupDocumentation
()
{
MemberGroupListIterator
mgli
(
*
memberGroupList
);
MemberGroup
*
mg
;
for
(;(
mg
=
mgli
.
current
());
++
mgli
)
{
mg
->
distributeMemberGroupDocumentation
();
}
}
void
NamespaceDef
::
insertUsedFile
(
const
char
*
f
)
void
NamespaceDef
::
insertUsedFile
(
const
char
*
f
)
{
{
if
(
files
.
find
(
f
)
==-
1
)
files
.
append
(
f
);
if
(
files
.
find
(
f
)
==-
1
)
files
.
append
(
f
);
...
@@ -130,7 +143,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
...
@@ -130,7 +143,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
OutputList
briefOutput
(
&
ol
);
OutputList
briefOutput
(
&
ol
);
if
(
!
briefDescription
().
isEmpty
())
if
(
!
briefDescription
().
isEmpty
())
{
{
parseDoc
(
briefOutput
,
name
(),
0
,
briefDescription
());
parseDoc
(
briefOutput
,
defFileName
,
defLine
,
name
(),
0
,
briefDescription
());
ol
+=
briefOutput
;
ol
+=
briefOutput
;
ol
.
writeString
(
"
\n
"
);
ol
.
writeString
(
"
\n
"
);
ol
.
pushGeneratorState
();
ol
.
pushGeneratorState
();
...
@@ -183,7 +196,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
...
@@ -183,7 +196,7 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
}
}
if
(
!
documentation
().
isEmpty
())
if
(
!
documentation
().
isEmpty
())
{
{
parseDoc
(
ol
,
name
(),
0
,
documentation
()
+
"
\n
"
);
parseDoc
(
ol
,
defFileName
,
defLine
,
name
(),
0
,
documentation
()
+
"
\n
"
);
ol
.
newParagraph
();
ol
.
newParagraph
();
}
}
ol
.
endTextBlock
();
ol
.
endTextBlock
();
...
...
src/namespacedef.h
View file @
f38608d4
...
@@ -36,7 +36,8 @@ class MemberGroupList;
...
@@ -36,7 +36,8 @@ class MemberGroupList;
class
NamespaceDef
:
public
Definition
class
NamespaceDef
:
public
Definition
{
{
public
:
public
:
NamespaceDef
(
const
char
*
name
,
const
char
*
ref
=
0
);
NamespaceDef
(
const
char
*
defFileName
,
int
defLine
,
const
char
*
name
,
const
char
*
ref
=
0
);
~
NamespaceDef
();
~
NamespaceDef
();
//QCString namespaceFile() const { return fileName; }
//QCString namespaceFile() const { return fileName; }
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
QCString
getOutputFileBase
()
const
{
return
fileName
;
}
...
@@ -72,6 +73,7 @@ class NamespaceDef : public Definition
...
@@ -72,6 +73,7 @@ class NamespaceDef : public Definition
{
{
return
isLinkableInProject
()
||
isReference
();
return
isLinkableInProject
()
||
isReference
();
}
}
void
distributeMemberGroupDocumentation
();
private
:
private
:
//QCString reference;
//QCString reference;
...
...
src/pre.l
View file @
f38608d4
...
@@ -171,12 +171,12 @@ static FILE *findFile(const char *fileName)
...
@@ -171,12 +171,12 @@ static FILE *findFile(const char *fileName)
{
{
QCString cmd = Config::inputFilter+" "+absName;
QCString cmd = Config::inputFilter+" "+absName;
f=popen(cmd,"r");
f=popen(cmd,"r");
if (!f)
warn("Warning
: could not execute filter %s\n",cmd.data());
if (!f)
err("Error
: could not execute filter %s\n",cmd.data());
}
}
else
else
{
{
f=fopen(absName,"r");
f=fopen(absName,"r");
if (!f)
warn("Warning
: could not open file %s for reading\n",absName.data());
if (!f)
err("Error
: could not open file %s for reading\n",absName.data());
}
}
if (f)
if (f)
{
{
...
@@ -761,7 +761,9 @@ void addDefine()
...
@@ -761,7 +761,9 @@ void addDefine()
{
{
//bool ambig;
//bool ambig;
//FileDef *fd=findFileDef(&inputNameDict,g_yyFileName,ambig);
//FileDef *fd=findFileDef(&inputNameDict,g_yyFileName,ambig);
MemberDef *md=new MemberDef("#define",g_defName,g_defArgsStr,0,
MemberDef *md=new MemberDef(
g_yyFileName,g_yyLineNr,
"#define",g_defName,g_defArgsStr,0,
Public,Normal,FALSE,FALSE,MemberDef::Define,0,0);
Public,Normal,FALSE,FALSE,MemberDef::Define,0,0);
if (!g_defArgsStr.isEmpty())
if (!g_defArgsStr.isEmpty())
{
{
...
@@ -773,8 +775,8 @@ void addDefine()
...
@@ -773,8 +775,8 @@ void addDefine()
//printf("Setting initializer for `%s' to `%s'\n",g_defName.data(),g_defText.data());
//printf("Setting initializer for `%s' to `%s'\n",g_defName.data(),g_defText.data());
md->setInitializer(g_defLitText);
md->setInitializer(g_defLitText);
md->setDefFile(g_yyFileName);
//
md->setDefFile(g_yyFileName);
md->setDefLine(g_yyLineNr);
//
md->setDefLine(g_yyLineNr);
md->setFileDef(g_yyFileDef);
md->setFileDef(g_yyFileDef);
md->setDefinition("#define "+g_defName);
md->setDefinition("#define "+g_defName);
...
...
src/rtfgen.cpp
View file @
f38608d4
...
@@ -1665,7 +1665,7 @@ void RTFGenerator::incrementIndentLevel()
...
@@ -1665,7 +1665,7 @@ void RTFGenerator::incrementIndentLevel()
m_listLevel
++
;
m_listLevel
++
;
if
(
m_listLevel
>
indentLevels
-
1
)
if
(
m_listLevel
>
indentLevels
-
1
)
{
{
warn
(
"Warning: Maximum indent level (%d) exceeded while generating RTF output!
\n
"
,
indentLevels
);
warn
_cont
(
"Warning: Maximum indent level (%d) exceeded while generating RTF output!
\n
"
,
indentLevels
);
m_listLevel
=
indentLevels
-
1
;
m_listLevel
=
indentLevels
-
1
;
}
}
}
}
...
@@ -1675,7 +1675,7 @@ void RTFGenerator::decrementIndentLevel()
...
@@ -1675,7 +1675,7 @@ void RTFGenerator::decrementIndentLevel()
m_listLevel
--
;
m_listLevel
--
;
if
(
m_listLevel
<
0
)
if
(
m_listLevel
<
0
)
{
{
warn
(
"Warning: Negative indent level while generating RTF output!
\n
"
);
warn
_cont
(
"Warning: Negative indent level while generating RTF output!
\n
"
);
m_listLevel
=
0
;
m_listLevel
=
0
;
}
}
}
}
...
...
src/scanner.h
View file @
f38608d4
...
@@ -29,8 +29,10 @@
...
@@ -29,8 +29,10 @@
class
OutputList
;
class
OutputList
;
extern
void
parseMain
(
Entry
*
);
extern
void
parseMain
(
Entry
*
);
extern
void
parseDoc
(
OutputList
&
ol
,
const
char
*
clName
,
const
char
*
memName
,
extern
void
parseDoc
(
OutputList
&
ol
,
const
QCString
&
docString
);
const
char
*
fileName
,
int
startLine
,
const
char
*
clName
,
const
char
*
memName
,
const
QCString
&
docString
);
extern
void
parseExample
(
OutputList
&
ol
,
const
QCString
&
docString
,
extern
void
parseExample
(
OutputList
&
ol
,
const
QCString
&
docString
,
const
char
*
fileName
);
const
char
*
fileName
);
extern
void
parseText
(
OutputList
&
ol
,
const
QCString
&
txtString
);
extern
void
parseText
(
OutputList
&
ol
,
const
QCString
&
txtString
);
...
...
src/scanner.l
View file @
f38608d4
This diff is collapsed.
Click to expand it.
src/tag.l
View file @
f38608d4
...
@@ -54,7 +54,7 @@ static void addClass(const char *name,const char *fileName)
...
@@ -54,7 +54,7 @@ static void addClass(const char *name,const char *fileName)
//printf("adding class %s\n",name);
//printf("adding class %s\n",name);
if (name!=0 && strlen(name)>0 && classDict[name]==0)
if (name!=0 && strlen(name)>0 && classDict[name]==0)
{
{
cd = new ClassDef(name,ClassDef::Class,tagName,fileName);
cd = new ClassDef(
fileName,1,
name,ClassDef::Class,tagName,fileName);
fd = 0;
fd = 0;
nd = 0;
nd = 0;
classList.inSort(cd);
classList.inSort(cd);
...
@@ -92,7 +92,7 @@ static void addNamespace(const char *name)
...
@@ -92,7 +92,7 @@ static void addNamespace(const char *name)
// since namespace are open, this need not to be the case. As a result
// since namespace are open, this need not to be the case. As a result
// namespace may contain members that are located in
// namespace may contain members that are located in
// different namespaces!
// different namespaces!
nd = new NamespaceDef(name,tagName);
nd = new NamespaceDef(
"<tagfile>",1,
name,tagName);
namespaceList.inSort(nd);
namespaceList.inSort(nd);
namespaceDict.insert(name,nd);
namespaceDict.insert(name,nd);
}
}
...
@@ -110,7 +110,8 @@ static void addMember(const char *name,const char *anchor,const char *args)
...
@@ -110,7 +110,8 @@ static void addMember(const char *name,const char *anchor,const char *args)
MemberDef *md;
MemberDef *md;
ArgumentList *argList = new ArgumentList;
ArgumentList *argList = new ArgumentList;
stringToArgumentList(args,argList);
stringToArgumentList(args,argList);
md=new MemberDef(0,name,args,0,Public,Normal,FALSE,FALSE,
md=new MemberDef("<tagfile>",1,
0,name,args,0,Public,Normal,FALSE,FALSE,
MemberDef::Function,0,argList);
MemberDef::Function,0,argList);
delete argList;
delete argList;
md->setAnchor(anchor);
md->setAnchor(anchor);
...
...
src/translator.h
View file @
f38608d4
...
@@ -793,7 +793,7 @@ class Translator
...
@@ -793,7 +793,7 @@ class Translator
/*! Text shown before a multi-line variable/enum initialization */
/*! Text shown before a multi-line variable/enum initialization */
virtual
QCString
trInitialValue
()
virtual
QCString
trInitialValue
()
{
{
return
"Initial
value
:"
;
return
"Initial
izer
:"
;
}
}
/*! Text used the source code in the file index */
/*! Text used the source code in the file index */
virtual
QCString
trCode
()
virtual
QCString
trCode
()
...
...
src/util.cpp
View file @
f38608d4
...
@@ -221,7 +221,7 @@ ClassDef *getResolvedClass(const char *name)
...
@@ -221,7 +221,7 @@ ClassDef *getResolvedClass(const char *name)
}
}
if
(
count
==
10
)
if
(
count
==
10
)
{
{
warn
(
"Warning: possible recursive typedef dependency detected for %s!
\n
"
,
name
);
warn
_cont
(
"Warning: possible recursive typedef dependency detected for %s!
\n
"
,
name
);
return
classDict
[
name
];
return
classDict
[
name
];
}
}
else
else
...
@@ -734,7 +734,7 @@ QCString fileToString(const char *name)
...
@@ -734,7 +734,7 @@ QCString fileToString(const char *name)
QFileInfo
fi
(
name
);
QFileInfo
fi
(
name
);
if
(
!
fi
.
exists
()
||
!
fi
.
isFile
())
if
(
!
fi
.
exists
()
||
!
fi
.
isFile
())
{
{
warn
(
"Error: file `%s' not found
\n
"
,
name
);
err
(
"Error: file `%s' not found
\n
"
,
name
);
return
""
;
return
""
;
}
}
f
.
setName
(
name
);
f
.
setName
(
name
);
...
@@ -742,7 +742,7 @@ QCString fileToString(const char *name)
...
@@ -742,7 +742,7 @@ QCString fileToString(const char *name)
}
}
if
(
!
fileOpened
)
if
(
!
fileOpened
)
{
{
warn
(
"Error: cannot open file `%s' for reading
\n
"
,
name
);
err
(
"Error: cannot open file `%s' for reading
\n
"
,
name
);
return
""
;
return
""
;
}
}
int
fsize
=
f
.
size
();
int
fsize
=
f
.
size
();
...
@@ -2086,8 +2086,9 @@ FileDef *findFileDef(const FileNameDict *fnDict,const char *n,bool &ambig)
...
@@ -2086,8 +2086,9 @@ FileDef *findFileDef(const FileNameDict *fnDict,const char *n,bool &ambig)
//----------------------------------------------------------------------
//----------------------------------------------------------------------
void
showFileDefMatches
(
const
FileNameDict
*
fnDict
,
const
char
*
n
)
QCString
showFileDefMatches
(
const
FileNameDict
*
fnDict
,
const
char
*
n
)
{
{
QCString
result
;
QCString
name
=
n
;
QCString
name
=
n
;
QCString
path
;
QCString
path
;
int
slashPos
=
QMAX
(
name
.
findRev
(
'/'
),
name
.
findRev
(
'\\'
));
int
slashPos
=
QMAX
(
name
.
findRev
(
'/'
),
name
.
findRev
(
'\\'
));
...
@@ -2104,11 +2105,12 @@ void showFileDefMatches(const FileNameDict *fnDict,const char *n)
...
@@ -2104,11 +2105,12 @@ void showFileDefMatches(const FileNameDict *fnDict,const char *n)
{
{
if
(
path
.
isEmpty
()
||
fd
->
getPath
().
right
(
path
.
length
())
==
path
)
if
(
path
.
isEmpty
()
||
fd
->
getPath
().
right
(
path
.
length
())
==
path
)
{
{
msg
(
" %s
\n
"
,
fd
->
absFilePath
().
data
()
);
result
+=
" %s
\n
"
,
fd
->
absFilePath
().
data
(
);
}
}
fd
=
fn
->
next
();
fd
=
fn
->
next
();
}
}
}
}
return
result
;
}
}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
...
@@ -2281,11 +2283,15 @@ QCString insertTemplateSpecifierInScope(const QCString &scope,const QCString &te
...
@@ -2281,11 +2283,15 @@ QCString insertTemplateSpecifierInScope(const QCString &scope,const QCString &te
if
(
!
templ
.
isEmpty
()
&&
scope
.
find
(
'<'
)
==-
1
)
if
(
!
templ
.
isEmpty
()
&&
scope
.
find
(
'<'
)
==-
1
)
{
{
int
si
,
pi
=
0
;
int
si
,
pi
=
0
;
while
((
si
=
scope
.
find
(
"::"
,
pi
))
!=-
1
&&
!
getClass
(
scope
.
left
(
si
)
+
templ
)
ClassDef
*
cd
=
0
;
&&
!
getClass
(
scope
.
left
(
si
)))
while
(
{
//printf("Tried `%s'\n",(scope.left(si)+templ).data());
(
si
=
scope
.
find
(
"::"
,
pi
))
!=-
1
&&
!
getClass
(
scope
.
left
(
si
)
+
templ
)
&&
pi
=
si
+
2
;
((
cd
=
getClass
(
scope
.
left
(
si
)))
==
0
||
cd
->
templateArguments
()
==
0
)
}
)
{
//printf("Tried `%s'\n",(scope.left(si)+templ).data());
pi
=
si
+
2
;
}
if
(
si
==-
1
)
// not nested => append template specifier
if
(
si
==-
1
)
// not nested => append template specifier
{
{
result
+=
templ
;
result
+=
templ
;
...
...
src/util.h
View file @
f38608d4
...
@@ -65,7 +65,7 @@ extern ClassDef *getClass(const char *key);
...
@@ -65,7 +65,7 @@ extern ClassDef *getClass(const char *key);
extern
ClassDef
*
getResolvedClass
(
const
char
*
key
);
extern
ClassDef
*
getResolvedClass
(
const
char
*
key
);
extern
FileDef
*
findFileDef
(
const
FileNameDict
*
fnDict
,
const
char
*
n
,
extern
FileDef
*
findFileDef
(
const
FileNameDict
*
fnDict
,
const
char
*
n
,
bool
&
ambig
);
bool
&
ambig
);
extern
void
showFileDefMatches
(
const
FileNameDict
*
fnDict
,
const
char
*
n
);
extern
QCString
showFileDefMatches
(
const
FileNameDict
*
fnDict
,
const
char
*
n
);
extern
int
guessSection
(
const
char
*
name
);
extern
int
guessSection
(
const
char
*
name
);
extern
bool
isId
(
char
c
);
extern
bool
isId
(
char
c
);
extern
QCString
removeRedundantWhiteSpace
(
const
QCString
&
s
);
extern
QCString
removeRedundantWhiteSpace
(
const
QCString
&
s
);
...
...
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