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
21587da4
Commit
21587da4
authored
Mar 24, 2002
by
dimitri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release-1.2.14-20020324
parent
ca3fb0a6
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
493 additions
and
175 deletions
+493
-175
INSTALL
INSTALL
+2
-2
README
README
+2
-2
VERSION
VERSION
+1
-1
doxmlintf.h
addon/doxmlparser/include/doxmlintf.h
+5
-2
compoundhandler.cpp
addon/doxmlparser/src/compoundhandler.cpp
+11
-1
compoundhandler.h
addon/doxmlparser/src/compoundhandler.h
+2
-0
doxmlintf.h
addon/doxmlparser/src/doxmlintf.h
+5
-2
graphhandler.cpp
addon/doxmlparser/src/graphhandler.cpp
+110
-0
graphhandler.h
addon/doxmlparser/src/graphhandler.h
+41
-2
mainhandler.cpp
addon/doxmlparser/src/mainhandler.cpp
+3
-0
config.doc
doc/config.doc
+9
-0
index.doc
doc/index.doc
+3
-2
language.doc
doc/language.doc
+1
-1
starting.doc
doc/starting.doc
+6
-1
doxygen.spec
packages/rpm/doxygen.spec
+1
-1
classdef.cpp
src/classdef.cpp
+21
-14
classlist.cpp
src/classlist.cpp
+2
-2
code.l
src/code.l
+29
-6
config.l
src/config.l
+8
-0
definition.cpp
src/definition.cpp
+9
-2
diagram.cpp
src/diagram.cpp
+3
-3
doc.l
src/doc.l
+3
-3
doxygen.cpp
src/doxygen.cpp
+33
-32
filedef.cpp
src/filedef.cpp
+2
-2
index.cpp
src/index.cpp
+37
-13
memberdef.cpp
src/memberdef.cpp
+5
-5
namespacedef.cpp
src/namespacedef.cpp
+22
-5
namespacedef.h
src/namespacedef.h
+1
-0
scanner.l
src/scanner.l
+33
-7
util.cpp
src/util.cpp
+83
-64
No files found.
INSTALL
View file @
21587da4
DOXYGEN Version 1.2.14-200203
17
DOXYGEN Version 1.2.14-200203
24
Please read the installation section of the manual for instructions.
--------
Dimitri van Heesch (
17
March 2002)
Dimitri van Heesch (
24
March 2002)
README
View file @
21587da4
DOXYGEN Version 1.2.14_200203
17
DOXYGEN Version 1.2.14_200203
24
Please read INSTALL for compilation instructions.
...
...
@@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives.
Enjoy,
Dimitri van Heesch (dimitri@stack.nl) (
17
March 2002)
Dimitri van Heesch (dimitri@stack.nl) (
24
March 2002)
VERSION
View file @
21587da4
1.2.14-200203
17
1.2.14-200203
24
addon/doxmlparser/include/doxmlintf.h
View file @
21587da4
...
...
@@ -391,7 +391,7 @@ class IDocIterator
class
IEdgeLabel
{
public
:
virtual
QString
label
()
=
0
;
virtual
QString
label
()
const
=
0
;
};
class
IEdgeLabelIterator
...
...
@@ -409,10 +409,11 @@ class IChildNode
{
public
:
enum
NodeRelation
{
PublicInheritance
,
ProtectedInheritance
,
PrivateInheritance
,
Usage
,
TemplateInstace
PrivateInheritance
,
Usage
,
TemplateInsta
n
ce
};
virtual
QString
id
()
const
=
0
;
virtual
NodeRelation
relation
()
const
=
0
;
virtual
QString
relationString
()
const
=
0
;
virtual
IEdgeLabelIterator
*
edgeLabels
()
const
=
0
;
};
...
...
@@ -551,6 +552,8 @@ class ICompound
virtual
ISectionIterator
*
sections
()
const
=
0
;
virtual
IDocRoot
*
briefDescription
()
const
=
0
;
virtual
IDocRoot
*
detailedDescription
()
const
=
0
;
virtual
IGraph
*
inheritanceGraph
()
const
=
0
;
virtual
IGraph
*
collaborationGraph
()
const
=
0
;
/*! Returns an interface to a member given its id.
* @param id The member id.
...
...
addon/doxmlparser/src/compoundhandler.cpp
View file @
21587da4
...
...
@@ -98,7 +98,7 @@ void compoundhandler_exit()
CompoundHandler
::
CompoundHandler
(
const
QString
&
xmlDir
)
:
m_brief
(
0
),
m_detailed
(
0
),
m_programListing
(
0
),
m_xmlDir
(
xmlDir
),
m_refCount
(
1
),
m_memberDict
(
257
),
m_memberNameDict
(
257
),
m_mainHandler
(
0
)
m_mainHandler
(
0
)
,
m_inheritanceGraph
(
0
),
m_collaborationGraph
(
0
)
{
m_superClasses
.
setAutoDelete
(
TRUE
);
m_subClasses
.
setAutoDelete
(
TRUE
);
...
...
@@ -311,3 +311,13 @@ IMember *CompoundHandler::memberById(const QString &id) const
return
m_memberDict
[
id
];
}
IGraph
*
CompoundHandler
::
inheritanceGraph
()
const
{
return
m_inheritanceGraph
;
}
IGraph
*
CompoundHandler
::
collaborationGraph
()
const
{
return
m_collaborationGraph
;
}
addon/doxmlparser/src/compoundhandler.h
View file @
21587da4
...
...
@@ -60,6 +60,8 @@ class CompoundHandler : public ICompound, public BaseHandler<CompoundHandler>
ISectionIterator
*
sections
()
const
;
IDocRoot
*
briefDescription
()
const
;
IDocRoot
*
detailedDescription
()
const
;
IGraph
*
inheritanceGraph
()
const
;
IGraph
*
collaborationGraph
()
const
;
IMember
*
memberById
(
const
QString
&
id
)
const
;
IMemberIterator
*
memberByName
(
const
QString
&
name
)
const
;
void
release
();
...
...
addon/doxmlparser/src/doxmlintf.h
View file @
21587da4
...
...
@@ -391,7 +391,7 @@ class IDocIterator
class
IEdgeLabel
{
public
:
virtual
QString
label
()
=
0
;
virtual
QString
label
()
const
=
0
;
};
class
IEdgeLabelIterator
...
...
@@ -409,10 +409,11 @@ class IChildNode
{
public
:
enum
NodeRelation
{
PublicInheritance
,
ProtectedInheritance
,
PrivateInheritance
,
Usage
,
TemplateInstace
PrivateInheritance
,
Usage
,
TemplateInsta
n
ce
};
virtual
QString
id
()
const
=
0
;
virtual
NodeRelation
relation
()
const
=
0
;
virtual
QString
relationString
()
const
=
0
;
virtual
IEdgeLabelIterator
*
edgeLabels
()
const
=
0
;
};
...
...
@@ -551,6 +552,8 @@ class ICompound
virtual
ISectionIterator
*
sections
()
const
=
0
;
virtual
IDocRoot
*
briefDescription
()
const
=
0
;
virtual
IDocRoot
*
detailedDescription
()
const
=
0
;
virtual
IGraph
*
inheritanceGraph
()
const
=
0
;
virtual
IGraph
*
collaborationGraph
()
const
=
0
;
/*! Returns an interface to a member given its id.
* @param id The member id.
...
...
addon/doxmlparser/src/graphhandler.cpp
View file @
21587da4
#include "graphhandler.h"
class
EdgeRelationMapper
{
public
:
EdgeRelationMapper
()
{
m_map
.
insert
(
"public-inheritance"
,
IChildNode
::
PublicInheritance
);
m_map
.
insert
(
"protected-inheritance"
,
IChildNode
::
ProtectedInheritance
);
m_map
.
insert
(
"private-inheritance"
,
IChildNode
::
PrivateInheritance
);
m_map
.
insert
(
"usage"
,
IChildNode
::
Usage
);
m_map
.
insert
(
"template-instance"
,
IChildNode
::
TemplateInstance
);
}
IChildNode
::
NodeRelation
stringToNodeRelation
(
const
QString
&
nrStr
)
{
return
m_map
[
nrStr
];
}
private
:
QMap
<
QString
,
IChildNode
::
NodeRelation
>
m_map
;
};
static
EdgeRelationMapper
*
s_edgeRelationMapper
;
void
graphhandler_init
()
{
s_edgeRelationMapper
=
new
EdgeRelationMapper
;
}
void
graphhandler_exit
()
{
delete
s_edgeRelationMapper
;
}
//------------------------------------------------------------------------
GraphHandler
::
GraphHandler
(
IBaseHandler
*
parent
,
const
char
*
endTag
)
:
m_parent
(
parent
)
{
...
...
@@ -44,6 +77,8 @@ NodeHandler::NodeHandler(IBaseHandler *parent)
addEndHandler
(
"link"
,
this
,
&
NodeHandler
::
endLink
);
addStartHandler
(
"label"
,
this
,
&
NodeHandler
::
startLabel
);
addEndHandler
(
"label"
,
this
,
&
NodeHandler
::
endLabel
);
addStartHandler
(
"childnode"
,
this
,
&
NodeHandler
::
startChildNode
);
m_children
.
setAutoDelete
(
TRUE
);
}
NodeHandler
::~
NodeHandler
()
...
...
@@ -80,6 +115,81 @@ void NodeHandler::endLabel()
m_label
=
m_curString
;
}
void
NodeHandler
::
startChildNode
(
const
QXmlAttributes
&
attrib
)
{
ChildNodeHandler
*
cnh
=
new
ChildNodeHandler
(
this
);
cnh
->
startChildNode
(
attrib
);
m_children
.
append
(
cnh
);
}
IChildNodeIterator
*
NodeHandler
::
children
()
const
{
return
new
ChildNodeIterator
(
*
this
);
}
//------------------------------------------------------------------------
ChildNodeHandler
::
ChildNodeHandler
(
IBaseHandler
*
parent
)
:
m_parent
(
parent
)
{
addStartHandler
(
"edgelabel"
,
this
,
&
ChildNodeHandler
::
startEdgeLabel
);
m_edgeLabels
.
setAutoDelete
(
TRUE
);
}
ChildNodeHandler
::~
ChildNodeHandler
()
{
}
void
ChildNodeHandler
::
startChildNode
(
const
QXmlAttributes
&
attrib
)
{
m_id
=
attrib
.
value
(
"id"
);
m_relationString
=
attrib
.
value
(
"relation"
);
m_relation
=
s_edgeRelationMapper
->
stringToNodeRelation
(
m_relationString
);
m_parent
->
setDelegate
(
this
);
}
void
ChildNodeHandler
::
endChildNode
()
{
m_parent
->
setDelegate
(
0
);
}
void
ChildNodeHandler
::
startEdgeLabel
(
const
QXmlAttributes
&
attrib
)
{
EdgeLabelHandler
*
elh
=
new
EdgeLabelHandler
(
this
);
elh
->
startEdgeLabel
(
attrib
);
m_edgeLabels
.
append
(
elh
);
}
IEdgeLabelIterator
*
ChildNodeHandler
::
edgeLabels
()
const
{
return
new
EdgeLabelIterator
(
*
this
);
}
//-----------------------------------------------------------------------
EdgeLabelHandler
::
EdgeLabelHandler
(
IBaseHandler
*
parent
)
:
m_parent
(
parent
)
{
}
EdgeLabelHandler
::~
EdgeLabelHandler
()
{
}
void
EdgeLabelHandler
::
startEdgeLabel
(
const
QXmlAttributes
&
)
{
m_parent
->
setDelegate
(
this
);
m_curString
=
""
;
}
void
EdgeLabelHandler
::
endEdgeLabel
()
{
m_label
=
m_curString
;
m_parent
->
setDelegate
(
0
);
}
...
...
addon/doxmlparser/src/graphhandler.h
View file @
21587da4
...
...
@@ -22,6 +22,7 @@
class
NodeHandler
;
class
ChildNodeHandler
;
class
EdgeLabelHandler
;
class
GraphHandler
:
public
IGraph
,
public
BaseHandler
<
GraphHandler
>
{
...
...
@@ -57,12 +58,13 @@ class NodeHandler : public INode, public BaseHandler<NodeHandler>
void
endLabel
();
void
startLink
(
const
QXmlAttributes
&
attrib
);
void
endLink
();
void
startChildNode
(
const
QXmlAttributes
&
attrib
);
// INode
virtual
QString
id
()
const
{
return
m_id
;
}
virtual
QString
label
()
const
{
return
m_label
;
}
virtual
QString
linkId
()
const
{
return
m_link
;
}
virtual
IChildNodeIterator
*
children
()
const
{
return
0
;
}
// TODO: implement
virtual
IChildNodeIterator
*
children
()
const
;
private
:
IBaseHandler
*
m_parent
;
...
...
@@ -83,19 +85,27 @@ class NodeIterator : public BaseIterator<INodeIterator,INode,NodeHandler>
class
ChildNodeHandler
:
public
IChildNode
,
public
BaseHandler
<
ChildNodeHandler
>
{
friend
class
EdgeLabelIterator
;
public
:
ChildNodeHandler
(
IBaseHandler
*
parent
);
virtual
~
ChildNodeHandler
();
void
startChildNode
(
const
QXmlAttributes
&
attrib
);
void
endChildNode
();
void
startEdgeLabel
(
const
QXmlAttributes
&
attrib
);
// IChildNode
virtual
QString
id
()
const
{
return
m_id
;
}
virtual
NodeRelation
relation
()
const
{
return
m_relation
;
}
virtual
QString
relationString
()
const
{
return
m_relationString
;
}
virtual
IEdgeLabelIterator
*
edgeLabels
()
const
;
private
:
IBaseHandler
*
m_parent
;
QString
m_id
;
QString
m_id
;
NodeRelation
m_relation
;
QString
m_relationString
;
QList
<
EdgeLabelHandler
>
m_edgeLabels
;
};
class
ChildNodeIterator
:
public
BaseIterator
<
IChildNodeIterator
,
IChildNode
,
ChildNodeHandler
>
...
...
@@ -105,6 +115,35 @@ class ChildNodeIterator : public BaseIterator<IChildNodeIterator,IChildNode,Chil
BaseIterator
<
IChildNodeIterator
,
IChildNode
,
ChildNodeHandler
>
(
handler
.
m_children
)
{}
};
//----------------------------------------------------------------------
class
EdgeLabelHandler
:
public
IEdgeLabel
,
public
BaseHandler
<
EdgeLabelHandler
>
{
friend
class
EdgeLabelIterator
;
public
:
EdgeLabelHandler
(
IBaseHandler
*
parent
);
virtual
~
EdgeLabelHandler
();
void
startEdgeLabel
(
const
QXmlAttributes
&
attrib
);
void
endEdgeLabel
();
// IEdgeLabel
virtual
QString
label
()
const
{
return
m_label
;
}
private
:
IBaseHandler
*
m_parent
;
QString
m_label
;
};
class
EdgeLabelIterator
:
public
BaseIterator
<
IEdgeLabelIterator
,
IEdgeLabel
,
EdgeLabelHandler
>
{
public
:
EdgeLabelIterator
(
const
ChildNodeHandler
&
handler
)
:
BaseIterator
<
IEdgeLabelIterator
,
IEdgeLabel
,
EdgeLabelHandler
>
(
handler
.
m_edgeLabels
)
{}
};
void
graphhandler_init
();
void
graphhandler_exit
();
#endif
addon/doxmlparser/src/mainhandler.cpp
View file @
21587da4
...
...
@@ -17,6 +17,7 @@
#include "mainhandler.h"
#include "compoundhandler.h"
#include "sectionhandler.h"
#include "graphhandler.h"
#include "debug.h"
class
ErrorHandler
:
public
QXmlErrorHandler
...
...
@@ -256,6 +257,7 @@ IDoxygen *createObjectModel()
sectionhandler_init
();
memberhandler_init
();
dochandler_init
();
graphhandler_init
();
return
new
MainHandler
;
}
...
...
@@ -267,6 +269,7 @@ void MainHandler::release()
{
debug
(
1
,
"Compound %s not released
\n
"
,
ch
->
name
().
data
());
}
graphhandler_exit
();
dochandler_exit
();
memberhandler_exit
();
sectionhandler_exit
();
...
...
doc/config.doc
View file @
21587da4
...
...
@@ -155,6 +155,7 @@ followed by the descriptions of the tags grouped by category.
<
li
>
\
refitem
cfg_max_dot_graph_width
MAX_DOT_GRAPH_WIDTH
<
li
>
\
refitem
cfg_max_initializer_lines
MAX_INITIALIZER_LINES
<
li
>
\
refitem
cfg_optimize_output_for_c
OPTIMIZE_OUTPUT_FOR_C
<
li
>
\
refitem
cfg_optimize_output_java
OPTIMIZE_OUTPUT_JAVA
<
li
>
\
refitem
cfg_output_directory
OUTPUT_DIRECTORY
<
li
>
\
refitem
cfg_output_language
OUTPUT_LANGUAGE
<
li
>
\
refitem
cfg_paper_type
PAPER_TYPE
...
...
@@ -498,6 +499,14 @@ followed by the descriptions of the tags grouped by category.
for
C
.
For
instance
some
of
the
names
that
are
used
will
be
different
.
The
list
of
all
members
will
be
omitted
,
etc
.
\
anchor
cfg_optimize_output_java
<
dt
>\
c
OPTIMIZE_OUTPUT_JAVA
<
dd
>
\
addindex
OPTIMIZE_OUTPUT_JAVA
Set
the
OPTIMIZE_OUTPUT_JAVA
tag
to
YES
if
your
project
consists
of
Java
sources
only
.
Doxygen
will
then
generate
output
that
is
more
tailored
for
Java
.
For
instance
namespaces
will
be
presented
as
packages
,
qualified
scopes
will
look
different
,
etc
.
\
anchor
cfg_show_used_files
<
dt
>\
c
SHOW_USED_FILES
<
dd
>
\
addindex
SHOW_USED_FILES
...
...
doc/index.doc
View file @
21587da4
...
...
@@ -178,8 +178,9 @@ Thanks go to:
<li>Ken Wong for providing the HTML tree view code.
<li>Petr Prikryl for coordinating the internationalisation support.
All language maintainers for providing translations into many languages.
<li>Erik Jan Lingen of <a href="http://www.habanera.nl/">Habanera</a> for
donating money.
<li>Erik Jan Lingen of <a href="http://www.habanera.nl/">Habanera</a>, Mark
Roddy, Paul Schwartz, Charles Duffy, and Vadym Voznyuk
for donating money.
<li>The Comms group of <a href="http://www.symbian.com">Symbian</a> for donating
an ultra cool <a href="http://www.psion.com/revoplus>Revo plus</a>
organizer!
...
...
doc/language.doc
View file @
21587da4
...
...
@@ -25,7 +25,7 @@ Doxygen has built-in support for multiple languages. This means
that the text fragments that doxygen generates can be produced in
languages other than English (the default) at configuration time.
Currently (version 1.2.14-2002031
0
), 25 languages
Currently (version 1.2.14-2002031
7
), 25 languages
are supported (sorted alphabetically):
Brazilian Portuguese, Chinese, Croatian, Czech, Danish,
Dutch, English, Finnish, French, German,
...
...
doc/starting.doc
View file @
21587da4
...
...
@@ -184,7 +184,12 @@ basically two options:
namespace or file). See section \ref structuralcommands to learn more
about structural commands.
</ol>
Files can only be documented using the second option.
Files can only be documented using the second option, since there is
no way to but a documentation block before a file. Of course, file members
(functions, variable, typedefs, defines) do not need an explicit
structural command; just putting a special documentation block in front or
behind them will do.
The text inside a special documentation block is parsed
before it is written to the HTML and/or \f$\mbox{\LaTeX}\f$ output files.
...
...
packages/rpm/doxygen.spec
View file @
21587da4
Summary: A documentation system for C/C++.
Name: doxygen
Version: 1.2.14_200203
17
Version: 1.2.14_200203
24
Release: 1
Epoch: 1
Source0: ftp://ftp.stack.nl/pub/users/dimitri/%{name}-%{version}.src.tar.gz
...
...
src/classdef.cpp
View file @
21587da4
...
...
@@ -700,7 +700,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
if
(
outerTempArgList
)
pageTitle
.
prepend
(
" Template"
);
startFile
(
ol
,
getOutputFileBase
(),
name
(),
pageTitle
);
startTitle
(
ol
,
getOutputFileBase
());
parseText
(
ol
,
theTranslator
->
trCompoundReference
(
n
ame
(),
m_compType
,
outerTempArgList
!=
0
));
parseText
(
ol
,
theTranslator
->
trCompoundReference
(
displayN
ame
(),
m_compType
,
outerTempArgList
!=
0
));
addGroupListToTitle
(
ol
,
this
);
endTitle
(
ol
,
getOutputFileBase
(),
name
());
...
...
@@ -844,11 +844,11 @@ void ClassDef::writeDocumentation(OutputList &ol)
}
Doxygen
::
tagFile
<<
">"
<<
convertToXML
(
cd
->
name
())
<<
"</base>"
<<
endl
;
}
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
n
ame
()
+
bcd
->
templSpecifiers
);
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
displayN
ame
()
+
bcd
->
templSpecifiers
);
}
else
{
ol
.
docify
(
cd
->
n
ame
());
ol
.
docify
(
cd
->
displayN
ame
());
}
}
else
...
...
@@ -879,11 +879,11 @@ void ClassDef::writeDocumentation(OutputList &ol)
ClassDef
*
cd
=
bcd
->
classDef
;
if
(
cd
->
isLinkable
())
{
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
n
ame
());
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
displayN
ame
());
}
else
{
ol
.
docify
(
cd
->
n
ame
());
ol
.
docify
(
cd
->
displayN
ame
());
}
writeInheritanceSpecifier
(
ol
,
bcd
);
}
...
...
@@ -945,9 +945,9 @@ void ClassDef::writeDocumentation(OutputList &ol)
ClassDiagram
diagram
(
this
);
// create a diagram of this class.
ol
.
startClassDiagram
();
ol
.
disable
(
OutputGenerator
::
Man
);
parseText
(
ol
,
theTranslator
->
trClassDiagram
(
n
ame
()));
parseText
(
ol
,
theTranslator
->
trClassDiagram
(
displayN
ame
()));
ol
.
enable
(
OutputGenerator
::
Man
);
ol
.
endClassDiagram
(
diagram
,
getOutputFileBase
(),
n
ame
());
ol
.
endClassDiagram
(
diagram
,
getOutputFileBase
(),
displayN
ame
());
}
if
(
Config_getBool
(
"HAVE_DOT"
)
&&
Config_getBool
(
"COLLABORATION_GRAPH"
))
...
...
@@ -958,7 +958,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol
.
pushGeneratorState
();
ol
.
disable
(
OutputGenerator
::
Man
);
ol
.
startDotGraph
();
parseText
(
ol
,
theTranslator
->
trCollaborationDiagram
(
n
ame
()));
parseText
(
ol
,
theTranslator
->
trCollaborationDiagram
(
displayN
ame
()));
ol
.
endDotGraph
(
usageImplGraph
);
if
(
Config_getBool
(
"GENERATE_LEGEND"
))
{
...
...
@@ -1251,10 +1251,10 @@ void ClassDef::writeMemberList(OutputList &ol)
startFile
(
ol
,
m_memListFileName
,
m_memListFileName
,
theTranslator
->
trMemberList
());
startTitle
(
ol
,
0
);
parseText
(
ol
,
n
ame
()
+
" "
+
theTranslator
->
trMemberList
());
parseText
(
ol
,
displayN
ame
()
+
" "
+
theTranslator
->
trMemberList
());
endTitle
(
ol
,
0
,
0
);
parseText
(
ol
,
theTranslator
->
trThisIsTheListOfAllMembers
());
ol
.
writeObjectLink
(
getReference
(),
getOutputFileBase
(),
0
,
n
ame
());
ol
.
writeObjectLink
(
getReference
(),
getOutputFileBase
(),
0
,
displayN
ame
());
parseText
(
ol
,
theTranslator
->
trIncludingInheritedMembers
());
//ol.startItemList();
...
...
@@ -1328,12 +1328,12 @@ void ClassDef::writeMemberList(OutputList &ol)
parseText
(
ol
,
theTranslator
->
trDefinedIn
()
+
" "
);
if
(
cd
->
isLinkable
())
{
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
n
ame
());
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
displayN
ame
());
}
else
{
ol
.
startBold
();
ol
.
docify
(
cd
->
n
ame
());
ol
.
docify
(
cd
->
displayN
ame
());
ol
.
endBold
();
}
ol
.
writeString
(
")"
);
...
...
@@ -1344,7 +1344,7 @@ void ClassDef::writeMemberList(OutputList &ol)
{
ol
.
writeString
(
"<td>"
);
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
n
ame
());
0
,
cd
->
displayN
ame
());
ol
.
writeString
(
"</td>"
);
ol
.
writeString
(
"<td>"
);
}
...
...
@@ -2383,7 +2383,14 @@ QCString ClassDef::qualifiedNameWithTemplateParameters(
scName
=
d
->
qualifiedName
();
}
}
if
(
!
scName
.
isEmpty
())
scName
+=
"::"
;
QCString
scopeSeparator
;
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
scopeSeparator
=
"."
;
else
scopeSeparator
=
"::"
;
if
(
!
scName
.
isEmpty
())
scName
+=
scopeSeparator
;
scName
+=
localName
();
ArgumentList
*
al
=
0
;
bool
isSpecialization
=
localName
().
find
(
'<'
)
!=-
1
;
...
...
src/classlist.cpp
View file @
21587da4
...
...
@@ -104,13 +104,13 @@ void ClassSDict::writeDeclaration(OutputList &ol,const ClassDef::CompoundType *f
ol
.
writeObjectLink
(
cd
->
getReference
(),
cd
->
getOutputFileBase
(),
0
,
cd
->
n
ame
()
cd
->
localN
ame
()
);
}
else
{
ol
.
startBold
();
ol
.
docify
(
cd
->
n
ame
());
ol
.
docify
(
cd
->
localN
ame
());
ol
.
endBold
();
}
ol
.
endMemberItem
(
FALSE
);
...
...
src/code.l
View file @
21587da4
...
...
@@ -623,10 +623,11 @@ static void generateClassOrGlobalLink(OutputDocInterface &ol,char *clName,int *c
if (!g_theVarContext.findVariable(className)) // not a local variable
{
cd = getResolvedClass(g_currentDefinition,className);
Definition *d = g_currentDefinition;
cd = getResolvedClass(d,className);
if (cd==0 && (i=className.find('<'))!=-1)
{
cd=getResolvedClass(
g_currentDefinition
,className.left(i));
cd=getResolvedClass(
d
,className.left(i));
}
}
if (cd && cd->isLinkable()) // is it a linkable class
...
...
@@ -976,9 +977,9 @@ SCOPENAME (({ID}?{BN}*"::"{BN}*)*)((~{BN}*)?{ID})
TEMPLIST "<"[^\"\}\{\(\)\/\n\>]*">"
SCOPETNAME ((({ID}{TEMPLIST}?){BN}*"::"{BN}*)*)((~{BN}*)?{ID})
SCOPEPREFIX ({ID}{TEMPLIST}?{BN}*"::"{BN}*)+
KEYWORD ("asm"|"auto"|"class"|"const"|"const_cast"|"delete"|"dynamic_cast"|"enum"|"explicit"|"extern"|"false"|"friend"|"inline"|"mutable"|"namespace"|"new"|"operator"|"private"|"protected"|"public"|"register"|"reinterpret_cast"|"sizeof"|"static"|"static_cast"|"struct"|"template"|"this"|"true"|"typedef"|"typeid"|"typename"|"union"|"using"|"virtual"|"volatile")
FLOWKW ("break"|"case"|"catch"|"continue"|"default"|"do"|"else"|"for"|"goto"|"if"|"return"|"switch"|"throw"|"try"|"while")
TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"|"void"|"wchar_t")
KEYWORD ("asm"|"auto"|"class"|"const"|"const_cast"|"delete"|"dynamic_cast"|"enum"|"explicit"|"extern"|"false"|"friend"|"inline"|"mutable"|"namespace"|"new"|"operator"|"private"|"protected"|"public"|"register"|"reinterpret_cast"|"sizeof"|"static"|"static_cast"|"struct"|"template"|"this"|"true"|"typedef"|"typeid"|"typename"|"union"|"using"|"virtual"|"volatile"
|"abstract"|"final"|"import"|"synchronized"|"transient"
)
FLOWKW ("break"|"case"|"catch"|"continue"|"default"|"do"|"else"|"for"|"goto"|"if"|"return"|"switch"|"throw"|"t
hrows"|"t
ry"|"while")
TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"|"void"|"wchar_t"
|"boolean"
)
%option noyywrap
...
...
@@ -994,6 +995,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
%x MemberCall2
%x SkipInits
%x ClassName
%x PackageName
%x ClassVar
%x Bases
%x SkipSharp
...
...
@@ -1012,10 +1014,15 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
//g_code->codify(yytext);
if (!g_insideTemplate)
BEGIN( ClassName );
}
<Body>("package")[ \t\n]+ {
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
BEGIN( PackageName );
}
<ReadInclude>[^\n\"\>]+/(">"|"\"") {
//FileInfo *f;
bool ambig;
...
...
@@ -1108,10 +1115,24 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
generateClassOrGlobalLink(*g_code,yytext);
BEGIN( ClassVar );
}
<PackageName>{ID}("."{ID})* {
g_curClassName=yytext;
g_curClassName=substitute(g_curClassName,".","::");
//printf("found package: %s\n",g_curClassName.data());
addType();
codifyLines(yytext);
}
<ClassVar>"=" {
unput(*yytext);
BEGIN( Body );
}
<ClassVar>("extends"|"implements") { // Java
startFontClass("keyword");
codifyLines(yytext);
endFontClass();
g_curClassBases.clear();
BEGIN( Bases );
}
<ClassVar>{ID} {
g_type = g_curClassName.copy();
g_name = yytext;
...
...
@@ -1123,6 +1144,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
g_curClassBases.clear();
BEGIN( Bases );
}
<PackageName>[ \t]*";" |
<Bases,ClassName,ClassVar>[ \t]*"{"[ \t]* {
g_theVarContext.pushScope();
g_code->codify(yytext);
...
...
@@ -1138,6 +1160,7 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
{
g_scopeStack.push(SCOPEBLOCK);
pushScope(g_curClassName);
//printf("***** g_curClassName=%s\n",g_curClassName.data());
//CodeClassDef *cd=new CodeClassDef(g_ccd);
//g_codeClassDict.insert(cd->name,cd);
if (getResolvedClass(g_currentDefinition,g_curClassName)==0)
...
...
src/config.l
View file @
21587da4
...
...
@@ -1564,6 +1564,14 @@ void Config::create()
"of all members will be omitted, etc. \n",
FALSE
);
cb = addBool(
"OPTIMIZE_OUTPUT_JAVA",
"Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources \n"
"only. Doxygen will then generate output that is more tailored for Java. \n"
"For instance namespaces will be presented as packages, qualified scopes \n"
"will look different, etc. \n",
FALSE
);
cb = addBool(
"SHOW_USED_FILES",
"Set the SHOW_USED_FILES tag to NO to disable the list of files generated \n"
...
...
src/definition.cpp
View file @
21587da4
...
...
@@ -388,7 +388,14 @@ void Definition::writeSourceRefList(OutputList &ol,const char *scopeName,
//printf("class=%p scope=%s scopeName=%s\n",md->getClassDef(),scope.data(),scopeName);
if
(
!
scope
.
isEmpty
()
&&
scope
!=
scopeName
)
{
name
.
prepend
(
scope
+
"::"
);
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
name
.
prepend
(
scope
+
"."
);
}
else
{
name
.
prepend
(
scope
+
"::"
);
}
}
Definition
*
d
=
md
->
getOuterScope
();
if
(
d
==
Doxygen
::
globalScope
)
d
=
md
->
getBodyDef
();
...
...
@@ -429,7 +436,7 @@ void Definition::writeSourceRefList(OutputList &ol,const char *scopeName,
{
ol
.
docify
(
name
);
}
if
(
md
->
isFunction
()
&&
md
->
isSlot
())
ol
.
docify
(
"()"
);
if
(
md
->
isFunction
()
||
md
->
isSlot
()
||
md
->
isPrototype
()
||
md
->
isSignal
())
ol
.
docify
(
"()"
);
}
index
=
newIndex
+
matchLen
;
}
...
...
src/diagram.cpp
View file @
21587da4
...
...
@@ -167,7 +167,7 @@ static void writeMapArea(QTextStream &t,ClassDef *cd,int x,int y,int w,int h)
if
((
dest
=
Doxygen
::
tagDestinationDict
[
ref
]))
t
<<
*
dest
<<
"/"
;
}
t
<<
cd
->
getOutputFileBase
()
<<
htmlFileExtension
<<
"
\"
"
;
t
<<
"alt=
\"
"
<<
cd
->
n
ame
();
t
<<
"alt=
\"
"
<<
cd
->
displayN
ame
();
t
<<
"
\"
shape=
\"
rect
\"
coords=
\"
"
<<
x
<<
","
<<
y
<<
","
;
t
<<
(
x
+
w
)
<<
","
<<
(
y
+
h
)
<<
"
\"
>"
<<
endl
;
}
...
...
@@ -199,11 +199,11 @@ QCString DiagramItem::label() const
QCString
result
;
if
(
!
templSpec
.
isEmpty
())
{
result
=
insertTemplateSpecifierInScope
(
classDef
->
n
ame
(),
templSpec
);
result
=
insertTemplateSpecifierInScope
(
classDef
->
displayN
ame
(),
templSpec
);
}
else
{
result
=
classDef
->
n
ame
();
result
=
classDef
->
displayN
ame
();
}
if
(
Config_getBool
(
"HIDE_SCOPE_NAMES"
))
result
=
stripScope
(
result
);
return
result
;
...
...
src/doc.l
View file @
21587da4
...
...
@@ -2485,7 +2485,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
outDoc->startEmphasis();
if (!insideHtmlLink)
{
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
FALS
E);
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
TRU
E);
}
else
{
...
...
@@ -2524,7 +2524,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
outDoc->startBold();
if (!insideHtmlLink)
{
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
FALS
E);
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
TRU
E);
}
else
{
...
...
@@ -2563,7 +2563,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG})
outDoc->startTypewriter();
if (!insideHtmlLink)
{
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
FALS
E);
linkifyText(TextGeneratorOLImpl(*outDoc),className,0,yytext,FALSE,
TRU
E);
}
else
{
...
...
src/doxygen.cpp
View file @
21587da4
...
...
@@ -440,13 +440,14 @@ static bool addNamespace(Entry *root,ClassDef *cd)
if
(
e
->
section
==
Entry
::
NAMESPACE_SEC
)
{
NamespaceDef
*
nd
=
0
;
//printf("addNameSpace() trying: %s\n",e->name.data());
QCString
nsName
=
stripAnonymousNamespaceScope
(
e
->
name
);
//printf("addNameSpace() trying: %s\n",nsName.data());
if
(
!
nsName
.
isEmpty
()
&&
nsName
.
at
(
0
)
!=
'@'
&&
(
nd
=
getResolvedNamespace
(
nsName
))
)
{
cd
->
setNamespace
(
nd
);
cd
->
setOuterScope
(
nd
);
nd
->
insertClass
(
cd
);
return
TRUE
;
}
...
...
@@ -1080,18 +1081,25 @@ static MemberDef *addVariableToClass(
Entry
*
root
,
ClassDef
*
cd
,
MemberDef
::
MemberType
mtype
,
const
QCString
&
scope
,
/*const QCString &scope,*/
const
QCString
&
name
,
bool
fromAnnScope
,
int
indentDepth
,
MemberDef
*
fromAnnMemb
,
Protection
prot
)
{
QCString
qualScope
=
cd
->
qualifiedNameWithTemplateParameters
();
QCString
scopeSeparator
=
"::"
;
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
qualScope
=
substitute
(
qualScope
,
"::"
,
"."
);
scopeSeparator
=
"."
;
}
Debug
::
print
(
Debug
::
Variables
,
0
,
" class variable:
\n
"
" %s' %s'::`%s' `%s' prot=`%d ann=%d init=%s
\n
"
,
root
->
type
.
data
(),
s
cope
.
data
(),
qualS
cope
.
data
(),
name
.
data
(),
root
->
args
.
data
(),
root
->
protection
,
...
...
@@ -1099,20 +1107,6 @@ static MemberDef *addVariableToClass(
root
->
initializer
.
data
()
);
// class friends may be templatized
//QCString name=n;
//int i;
//if (root->type.left(7)=="friend " && (i=name.find('<'))!=-1)
//{
// name=name.left(i);
//}
// add template names, if the class is a non-specialized template
//if (scope.find('<')==-1 && cd->templateArguments())
//{
// scope+=cd->getTemplateNameString();
//}
// generate member definition.
QCString
def
;
if
(
!
root
->
type
.
isEmpty
())
{
...
...
@@ -1122,7 +1116,7 @@ static MemberDef *addVariableToClass(
}
else
{
def
=
root
->
type
+
" "
+
scope
+
"::"
+
name
+
root
->
args
;
def
=
root
->
type
+
" "
+
qualScope
+
scopeSeparator
+
name
+
root
->
args
;
}
}
else
...
...
@@ -1133,7 +1127,7 @@ static MemberDef *addVariableToClass(
}
else
{
def
=
scope
+
"::"
+
name
+
root
->
args
;
def
=
qualScope
+
scopeSeparator
+
name
+
root
->
args
;
}
}
if
(
def
.
left
(
7
)
==
"static "
)
def
=
def
.
right
(
def
.
length
()
-
7
);
...
...
@@ -1510,7 +1504,7 @@ void buildVarList(Entry *root)
cd
=
getClass
(
scope
);
if
(
cd
)
{
addVariableToClass
(
root
,
cd
,
MemberDef
::
Friend
,
scope
,
addVariableToClass
(
root
,
cd
,
MemberDef
::
Friend
,
/*scope,*/
root
->
name
,
FALSE
,
0
,
0
,
Public
);
}
}
...
...
@@ -1563,7 +1557,7 @@ void buildVarList(Entry *root)
if
(
!
pScope
.
isEmpty
()
&&
(
pcd
=
getClass
(
pScope
)))
{
//Protection p = (Protection)QMAX((int)root->protection,(int)cd->protection());
md
=
addVariableToClass
(
root
,
pcd
,
mtype
,
pScope
,
name
,
TRUE
,
indentDepth
,
0
,
root
->
protection
);
md
=
addVariableToClass
(
root
,
pcd
,
mtype
,
/*pScope,*/
name
,
TRUE
,
indentDepth
,
0
,
root
->
protection
);
}
else
// annonymous scope inside namespace or file => put variable in the global scope
{
...
...
@@ -1573,7 +1567,7 @@ void buildVarList(Entry *root)
}
}
}
addVariableToClass
(
root
,
cd
,
mtype
,
scope
,
name
,
FALSE
,
indentDepth
,
md
,
root
->
protection
);
addVariableToClass
(
root
,
cd
,
mtype
,
/*scope,*/
name
,
FALSE
,
indentDepth
,
md
,
root
->
protection
);
}
else
if
(
!
name
.
isEmpty
())
// global variable
{
...
...
@@ -1607,8 +1601,8 @@ nextMember:
// Searches the Entry tree for Function sections.
// If found they are stored in their class or in the global list.
void
add
NewMember
ToClass
(
Entry
*
root
,
ClassDef
*
cd
,
const
QCString
&
rname
,
const
QCString
&
scope
,
bool
isFriend
)
void
add
Method
ToClass
(
Entry
*
root
,
ClassDef
*
cd
,
const
QCString
&
rname
,
/*const QCString &scope,*/
bool
isFriend
)
{
int
l
,
i
;
static
QRegExp
re
(
"([a-z_A-Z0-9: ]*[ *]*[ ]*"
);
...
...
@@ -1658,6 +1652,13 @@ void addNewMemberToClass(Entry *root,ClassDef *cd,
//md->setScopeTemplateArguments(root->tArgList);
md
->
addSectionsToDefinition
(
root
->
anchors
);
QCString
def
;
QCString
qualScope
=
cd
->
qualifiedNameWithTemplateParameters
();
QCString
scopeSeparator
=
"::"
;
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
qualScope
=
substitute
(
qualScope
,
"::"
,
"."
);
scopeSeparator
=
"."
;
}
if
(
!
root
->
relates
.
isEmpty
()
||
isFriend
||
Config_getBool
(
"HIDE_SCOPE_NAMES"
))
{
if
(
!
root
->
type
.
isEmpty
())
...
...
@@ -1685,27 +1686,26 @@ void addNewMemberToClass(Entry *root,ClassDef *cd,
}
else
{
QCString
qualScope
=
cd
->
qualifiedNameWithTemplateParameters
();
if
(
!
root
->
type
.
isEmpty
())
{
if
(
root
->
argList
)
{
def
=
root
->
type
+
" "
+
qualScope
+
"::"
+
name
;
def
=
root
->
type
+
" "
+
qualScope
+
scopeSeparator
+
name
;
}
else
{
def
=
root
->
type
+
" "
+
qualScope
+
"::"
+
name
+
root
->
args
;
def
=
root
->
type
+
" "
+
qualScope
+
scopeSeparator
+
name
+
root
->
args
;
}
}
else
{
if
(
root
->
argList
)
{
def
=
qualScope
+
"::"
+
name
;
def
=
qualScope
+
scopeSeparator
+
name
;
}
else
{
def
=
qualScope
+
"::"
+
name
+
root
->
args
;
def
=
qualScope
+
scopeSeparator
+
name
+
root
->
args
;
}
}
}
...
...
@@ -1717,7 +1717,7 @@ void addNewMemberToClass(Entry *root,ClassDef *cd,
" `%s' `%s'::`%s' `%s' proto=%d
\n
"
" def=`%s'
\n
"
,
root
->
type
.
data
(),
s
cope
.
data
(),
qualS
cope
.
data
(),
rname
.
data
(),
root
->
args
.
data
(),
root
->
proto
,
...
...
@@ -1815,7 +1815,7 @@ static void buildFunctionList(Entry *root)
)
)
{
add
NewMemberToClass
(
root
,
cd
,
rname
,
scope
,
isFriend
);
add
MethodToClass
(
root
,
cd
,
rname
,
/*scope,*/
isFriend
);
}
else
if
(
root
->
parent
&&
!
(
root
->
parent
->
section
&
Entry
::
COMPOUND_MASK
)
&&
...
...
@@ -4125,7 +4125,7 @@ static void findMember(Entry *root,
// for which there is only a definition, no declaration in
// the class. TODO: we should actually check whether
// the arguments match!
add
NewMemberToClass
(
root
,
cd
,
md
->
name
(),
cd
->
name
(),
isFriend
);
add
MethodToClass
(
root
,
cd
,
md
->
name
(),
/*cd->name(),*/
isFriend
);
return
;
}
candidates
++
;
...
...
@@ -5157,6 +5157,7 @@ static void generateClassList(ClassSDict &classSDict)
{
ClassDef
*
cd
=
cli
.
current
();
//printf("cd=%s getOuterScope=%p global=%p\n",cd->name().data(),cd->getOuterScope(),Doxygen::globalScope);
if
(
cd
->
getOuterScope
()
==
0
||
// <-- should not happen, but can if we read an old tag file
cd
->
getOuterScope
()
==
Doxygen
::
globalScope
// only look at global classes
)
...
...
src/filedef.cpp
View file @
21587da4
...
...
@@ -291,7 +291,7 @@ void FileDef::writeDocumentation(OutputList &ol)
ol
.
writeObjectLink
(
nd
->
getReference
(),
nd
->
getOutputFileBase
(),
0
,
nd
->
n
ame
()
nd
->
displayN
ame
()
);
if
(
!
Config_getString
(
"GENERATE_TAGFILE"
).
isEmpty
())
{
...
...
@@ -301,7 +301,7 @@ void FileDef::writeDocumentation(OutputList &ol)
else
{
ol
.
startBold
();
ol
.
docify
(
nd
->
n
ame
());
ol
.
docify
(
nd
->
displayN
ame
());
ol
.
endBold
();
}
ol
.
endMemberItem
(
FALSE
);
...
...
src/index.cpp
View file @
21587da4
...
...
@@ -190,13 +190,13 @@ void writeQuickLinks(OutputList &ol,bool compact ,bool ext=FALSE)
parseText
(
ol
,
theTranslator
->
trMainPage
());
ol
.
endQuickIndexItem
();
if
(
documentedPackages
>
0
)
{
if
(
!
compact
)
ol
.
writeListItem
();
ol
.
startQuickIndexItem
(
extLink
,
"packages"
+
htmlFileExtension
);
parseText
(
ol
,
theTranslator
->
trPackages
());
ol
.
endQuickIndexItem
();
}
//
if (documentedPackages>0)
//
{
//
if (!compact) ol.writeListItem();
//
ol.startQuickIndexItem(extLink,"packages"+htmlFileExtension);
//
parseText(ol,theTranslator->trPackages());
//
ol.endQuickIndexItem();
//
}
if
(
documentedGroups
>
0
)
{
if
(
!
compact
)
ol
.
writeListItem
();
...
...
@@ -208,7 +208,14 @@ void writeQuickLinks(OutputList &ol,bool compact ,bool ext=FALSE)
{
if
(
!
compact
)
ol
.
writeListItem
();
ol
.
startQuickIndexItem
(
extLink
,
"namespaces"
+
htmlFileExtension
);
parseText
(
ol
,
theTranslator
->
trNamespaceList
());
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
parseText
(
ol
,
theTranslator
->
trPackages
());
}
else
{
parseText
(
ol
,
theTranslator
->
trNamespaceList
());
}
ol
.
endQuickIndexItem
();
}
if
(
hierarchyClasses
>
0
)
...
...
@@ -1054,9 +1061,18 @@ void writeNamespaceIndex(OutputList &ol)
if
(
documentedNamespaces
==
0
)
return
;
ol
.
pushGeneratorState
();
ol
.
disable
(
OutputGenerator
::
Man
);
startFile
(
ol
,
"namespaces"
,
0
,
"Namespace Index"
);
QCString
title
;
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
startFile
(
ol
,
"namespaces"
,
0
,
"Package Index"
);
title
=
theTranslator
->
trPackageList
();
}
else
{
startFile
(
ol
,
"namespaces"
,
0
,
"Namespace Index"
);
title
=
theTranslator
->
trNamespaceList
();
}
startTitle
(
ol
,
0
);
QCString
title
=
theTranslator
->
trNamespaceList
();
QCString
htmlHelpTitle
=
title
;
QCString
ftvHelpTitle
=
title
;
if
(
!
Config_getString
(
"PROJECT_NAME"
).
isEmpty
())
title
.
prepend
(
Config_getString
(
"PROJECT_NAME"
)
+
" "
);
...
...
@@ -1081,7 +1097,14 @@ void writeNamespaceIndex(OutputList &ol)
ftvHelp
->
incContentsDepth
();
}
//ol.newParagraph();
parseText
(
ol
,
theTranslator
->
trNamespaceListDescription
(
Config_getBool
(
"EXTRACT_ALL"
)));
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
parseText
(
ol
,
theTranslator
->
trPackageListDescription
());
}
else
{
parseText
(
ol
,
theTranslator
->
trNamespaceListDescription
(
Config_getBool
(
"EXTRACT_ALL"
)));
}
//ol.newParagraph();
ol
.
endTextBlock
();
...
...
@@ -1100,7 +1123,7 @@ void writeNamespaceIndex(OutputList &ol)
}
//ol.writeStartAnnoItem("namespace",nd->getOutputFileBase(),0,nd->name());
ol
.
startIndexKey
();
ol
.
writeObjectLink
(
0
,
nd
->
getOutputFileBase
(),
0
,
nd
->
n
ame
());
ol
.
writeObjectLink
(
0
,
nd
->
getOutputFileBase
(),
0
,
nd
->
displayN
ame
());
ol
.
endIndexKey
();
bool
hasBrief
=
!
nd
->
briefDescription
().
isEmpty
();
ol
.
startIndexValue
(
hasBrief
);
...
...
@@ -1110,7 +1133,7 @@ void writeNamespaceIndex(OutputList &ol)
parseDoc
(
ol
,
nd
->
getDefFileName
(),
nd
->
getDefLine
(),
nd
->
name
(),
0
,
abbreviate
(
nd
->
briefDescription
(),
nd
->
n
ame
()));
abbreviate
(
nd
->
briefDescription
(),
nd
->
displayN
ame
()));
//ol.docify(")");
}
ol
.
endIndexValue
(
nd
->
getOutputFileBase
(),
hasBrief
);
...
...
@@ -1206,6 +1229,7 @@ void writeAnnotatedClassList(OutputList &ol)
//----------------------------------------------------------------------------
// OBSOLETE
void
writePackageList
(
OutputList
&
ol
)
{
bool
&
generateHtml
=
Config_getBool
(
"GENERATE_HTML"
)
;
...
...
src/memberdef.cpp
View file @
21587da4
...
...
@@ -1343,7 +1343,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
Definition
*
bd
=
bmd
->
group
;
if
(
bd
==
0
)
bd
=
bcd
;
ol
.
writeObjectLink
(
bd
->
getReference
(),
bd
->
getOutputFileBase
(),
bmd
->
anchor
(),
bcd
->
n
ame
());
bmd
->
anchor
(),
bcd
->
displayN
ame
());
//ol.writeObjectLink(bcd->getReference(),bcd->getOutputFileBase(),
// bmd->anchor(),bcd->name());
...
...
@@ -1355,7 +1355,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
else
{
ol
.
writeObjectLink
(
bcd
->
getReference
(),
bcd
->
getOutputFileBase
(),
0
,
bcd
->
n
ame
());
0
,
bcd
->
displayN
ame
());
if
(
bcd
->
isLinkableInProject
()
/* && !Config_getBool("PDF_HYPERLINKS")*/
)
{
writePageRef
(
ol
,
bcd
->
getOutputFileBase
(),
0
);
...
...
@@ -1437,7 +1437,7 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol,
if
(
bmd
->
group
)
bd
=
bmd
->
group
;
else
bd
=
bcd
;
ol
.
writeObjectLink
(
bd
->
getReference
(),
bd
->
getOutputFileBase
(),
bmd
->
anchor
(),
bcd
->
n
ame
());
bmd
->
anchor
(),
bcd
->
displayN
ame
());
if
(
bd
->
isLinkableInProject
()
)
{
...
...
@@ -1569,8 +1569,8 @@ bool MemberDef::visibleMemberGroup(bool hideNoHeader)
QCString
MemberDef
::
getScopeString
()
const
{
QCString
result
;
if
(
getClassDef
())
result
=
getClassDef
()
->
n
ame
();
else
if
(
getNamespaceDef
())
result
=
getNamespaceDef
()
->
n
ame
();
if
(
getClassDef
())
result
=
getClassDef
()
->
displayN
ame
();
else
if
(
getNamespaceDef
())
result
=
getNamespaceDef
()
->
displayN
ame
();
return
result
;
}
...
...
src/namespacedef.cpp
View file @
21587da4
...
...
@@ -176,9 +176,16 @@ void NamespaceDef::writeDocumentation(OutputList &ol)
startFile
(
ol
,
getOutputFileBase
(),
name
(),
pageTitle
);
startTitle
(
ol
,
getOutputFileBase
());
//ol.docify(pageTitle);
parseText
(
ol
,
theTranslator
->
trNamespaceReference
(
name
()));
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
parseText
(
ol
,
theTranslator
->
trPackage
(
displayName
()));
}
else
{
parseText
(
ol
,
theTranslator
->
trNamespaceReference
(
displayName
()));
}
addGroupListToTitle
(
ol
,
this
);
endTitle
(
ol
,
getOutputFileBase
(),
n
ame
());
endTitle
(
ol
,
getOutputFileBase
(),
displayN
ame
());
if
(
!
Config_getString
(
"GENERATE_TAGFILE"
).
isEmpty
())
{
...
...
@@ -327,10 +334,10 @@ QCString NamespaceDef::getOutputFileBase() const
return
convertNameToFile
(
fileName
);
}
Definition
*
NamespaceDef
::
findInnerCompound
(
const
char
*
n
ame
)
Definition
*
NamespaceDef
::
findInnerCompound
(
const
char
*
n
)
{
if
(
n
ame
==
0
)
return
0
;
return
m_innerCompounds
->
find
(
n
ame
);
if
(
n
==
0
)
return
0
;
return
m_innerCompounds
->
find
(
n
);
}
void
NamespaceDef
::
addInnerCompound
(
Definition
*
d
)
...
...
@@ -358,3 +365,13 @@ void NamespaceDef::addListReferences()
docVarMembers
.
addListReferences
(
this
);
}
QCString
NamespaceDef
::
displayName
()
const
{
QCString
result
=
name
();
if
(
Config_getBool
(
"OPTIMIZE_OUTPUT_JAVA"
))
{
result
=
substitute
(
result
,
"::"
,
"."
);
}
return
result
;
}
src/namespacedef.h
View file @
21587da4
...
...
@@ -55,6 +55,7 @@ class NamespaceDef : public Definition
NamespaceList
*
getUsedNamespaces
()
const
{
return
usingDirList
;
}
void
addUsingDeclaration
(
ClassDef
*
cd
);
ClassList
*
getUsedClasses
()
const
{
return
usingDeclList
;
}
QCString
displayName
()
const
;
bool
isLinkableInProject
()
const
{
...
...
src/scanner.l
View file @
21587da4
...
...
@@ -753,15 +753,32 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<FindMembers>{B}*"package"{BN}+ { // Java package
lineCount();
BEGIN(PackageName);
}
<PackageName>{ID}("."{ID})* {
current->name = yytext;
current->fileName = yyFileName;
current->startLine = yyLineNr;
current->section=Entry::PACKAGE_SEC;
//current->name = yytext;
//current->fileName = yyFileName;
//current->startLine = yyLineNr;
//current->section=Entry::PACKAGE_SEC;
//current_root->addSubEntry(current);
//current = new Entry ;
//initEntry();
isTypedef=FALSE;
current->name = yytext;
current->name = substitute(current->name,".","::");
current->section = Entry::NAMESPACE_SEC;
current->type = "namespace" ;
current->fileName = yyFileName;
current->startLine = yyLineNr;
current->bodyLine = yyLineNr;
lineCount();
curlyCount=0;
current_root->addSubEntry(current);
current = new Entry ;
current_root = current ;
current = new Entry ;
initEntry();
BEGIN( FindMembers ) ;
}
<PackageName>";" {
BEGIN(FindMembers);
...
...
@@ -2222,6 +2239,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<FuncQual,FuncRound,FuncFunc>. { current->args += *yytext; }
<FuncQual>{BN}*"try"{BN}+ { /* try-function-block */
insideTryBlock=TRUE;
lineCount();
}
<FuncQual>{BN}*"throw"{BN}*"(" { // C++ style throw clause
current->exception = " throw (" ;
...
...
@@ -2255,8 +2273,12 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
<ExcpList>"{" {
unput('{'); BEGIN( FuncQual );
}
<ExcpList>";" {
unput(';'); BEGIN( FuncQual );
}
<ExcpList>"\n" {
current->exception += ' ';
yyLineNr++;
}
<ExcpList>. {
current->exception += *yytext;
...
...
@@ -2579,7 +2601,8 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
}
BEGIN( FindMembers );
}
<CompoundName,ClassVar>{B}*"{"{B}* { current->fileName = yyFileName ;
<CompoundName,ClassVar>{B}*"{"{B}* {
current->fileName = yyFileName ;
current->startLine = yyLineNr ;
current->name = removeRedundantWhiteSpace(current->name);
if (current->name.isEmpty() && !isTypedef) // anonymous compound
...
...
@@ -4244,7 +4267,10 @@ static void parseCompounds(Entry *rt)
// set default protection based on the compound type
if( ce->section==Entry::CLASS_SEC ) // class
{
current->protection = protection = Private ;
if (ce->fileName.right(5)==".java")
current->protection = protection = Public ; // Actually this should be package scope!
else
current->protection = protection = Private ;
}
else if (ce->section == Entry::ENUM_SEC ) // enum
{
...
...
src/util.cpp
View file @
21587da4
...
...
@@ -453,86 +453,105 @@ ClassDef *getResolvedClass(
QCString
*
pTemplSpec
)
{
//printf("getResolvedClass(%s,%s)\n",scope ? scope->name().data() : "<none>", n);
QCString
name
=
n
;
if
(
name
.
isEmpty
())
return
0
;
if
(
scope
==
0
)
scope
=
Doxygen
::
globalScope
;
int
i
=
name
.
findRev
(
"::"
);
QCString
subst
;
if
(
i
!=-
1
)
{
subst
=
resolveTypeDef
(
scope
,
name
.
right
(
name
.
length
()
-
i
-
2
));
}
else
{
subst
=
resolveTypeDef
(
scope
,
name
);
}
//printf(" typedef subst=`%s'\n",subst.data());
if
(
!
subst
.
isEmpty
())
{
// strip * and & from n
int
ip
=
subst
.
length
()
-
1
;
while
(
ip
>=
0
&&
(
subst
.
at
(
ip
)
==
'*'
||
subst
.
at
(
ip
)
==
'&'
||
subst
.
at
(
ip
)
==
' '
))
ip
--
;
subst
=
subst
.
left
(
ip
+
1
);
if
(
name
.
isEmpty
())
return
0
;
int
index
=
name
.
findRev
(
"::"
);
ClassDef
*
cd
=
0
;
if
(
pIsTypeDef
)
*
pIsTypeDef
=
TRUE
;
//printf(" getResolvedClass `%s'->`%s'\n",name.data(),subst.data());
if
(
subst
==
name
)
// avoid resolving typedef struct foo foo;
do
{
//fprintf(stderr,"getResolvedClass(%s,%s)\n",scope ? scope->name().data() : "<none>", n);
QCString
subst
;
if
(
index
!=-
1
)
{
return
Doxygen
::
classSDict
.
find
(
name
);
subst
=
resolveTypeDef
(
scope
,
name
.
right
(
name
.
length
()
-
index
-
2
)
);
}
int
count
=
0
;
// recursion detection guard
QCString
newSubst
;
QCString
typeName
=
subst
;
if
(
i
!=-
1
)
typeName
.
prepend
(
name
.
left
(
i
)
+
"::"
);
while
(
!
(
newSubst
=
resolveTypeDef
(
scope
,
typeName
)).
isEmpty
()
&&
count
<
10
)
else
{
subst
=
resolveTypeDef
(
scope
,
name
)
;
}
//printf(" typedef subst=`%s'\n",subst.data()
);
if
(
!
subst
.
isEmpty
()
)
{
if
(
typeName
==
newSubst
)
{
ClassDef
*
cd
=
Doxygen
::
classSDict
.
find
(
subst
);
// for breaking typedef struct A A;
//printf(" getClass: exit `%s' %p\n",subst.data(),cd);
return
cd
;
}
subst
=
newSubst
;
// strip * and & from n
int
ip
=
subst
.
length
()
-
1
;
while
(
ip
>=
0
&&
subst
.
at
(
ip
)
==
'*'
||
subst
.
at
(
ip
)
==
'&'
||
subst
.
at
(
ip
)
==
' '
)
ip
--
;
while
(
ip
>=
0
&&
(
subst
.
at
(
ip
)
==
'*'
||
subst
.
at
(
ip
)
==
'&'
||
subst
.
at
(
ip
)
==
' '
)
)
ip
--
;
subst
=
subst
.
left
(
ip
+
1
);
//printf(" getResolvedClass `%s'->`%s'\n",name.data(),subst.data());
typeName
=
newSubst
;
if
(
i
!=-
1
)
typeName
.
prepend
(
name
.
left
(
i
)
+
"::"
);
count
++
;
}
if
(
count
==
10
)
{
warn_cont
(
"Warning: possible recursive typedef dependency detected for %s!
\n
"
,
n
);
return
Doxygen
::
classSDict
.
find
(
name
);
}
else
{
int
i
;
ClassDef
*
cd
=
Doxygen
::
classSDict
.
find
(
typeName
);
//printf(" getClass: subst %s->%s cd=%p\n",name.data(),typeName.data(),cd);
if
(
cd
==
0
&&
(
i
=
typeName
.
find
(
'<'
))
>
0
)
// try unspecialized version as well
if
(
pIsTypeDef
)
*
pIsTypeDef
=
TRUE
;
if
(
subst
==
name
)
// avoid resolving typedef struct foo foo;
{
if
(
pTemplSpec
)
*
pTemplSpec
=
typeName
.
right
(
typeName
.
length
()
-
i
);
return
Doxygen
::
classSDict
.
find
(
typeName
.
left
(
i
))
;
cd
=
Doxygen
::
classSDict
.
find
(
name
);
if
(
cd
)
goto
found
;
}
else
{
return
cd
;
int
count
=
0
;
// recursion detection guard
QCString
newSubst
;
QCString
typeName
=
subst
;
if
(
index
!=-
1
)
typeName
.
prepend
(
name
.
left
(
index
)
+
"::"
);
while
(
!
(
newSubst
=
resolveTypeDef
(
scope
,
typeName
)).
isEmpty
()
&&
count
<
10
)
{
if
(
typeName
==
newSubst
)
{
cd
=
Doxygen
::
classSDict
.
find
(
subst
);
// for breaking typedef struct A A;
//printf(" getClass: exit `%s' %p\n",subst.data(),cd);
if
(
cd
)
goto
found
;
break
;
}
subst
=
newSubst
;
// strip * and & from n
int
ip
=
subst
.
length
()
-
1
;
while
(
ip
>=
0
&&
subst
.
at
(
ip
)
==
'*'
||
subst
.
at
(
ip
)
==
'&'
||
subst
.
at
(
ip
)
==
' '
)
ip
--
;
subst
=
subst
.
left
(
ip
+
1
);
//printf(" getResolvedClass `%s'->`%s'\n",name.data(),subst.data());
typeName
=
newSubst
;
if
(
index
!=-
1
)
typeName
.
prepend
(
name
.
left
(
index
)
+
"::"
);
count
++
;
}
if
(
count
==
10
)
{
warn_cont
(
"Warning: possible recursive typedef dependency detected for %s!
\n
"
,
n
);
cd
=
Doxygen
::
classSDict
.
find
(
name
);
if
(
cd
)
goto
found
;
}
else
{
int
i
;
cd
=
Doxygen
::
classSDict
.
find
(
typeName
);
//printf(" getClass: subst %s->%s cd=%p\n",name.data(),typeName.data(),cd);
if
(
cd
==
0
&&
(
i
=
typeName
.
find
(
'<'
))
>
0
)
// try unspecialized version as well
{
if
(
pTemplSpec
)
*
pTemplSpec
=
typeName
.
right
(
typeName
.
length
()
-
i
);
cd
=
Doxygen
::
classSDict
.
find
(
typeName
.
left
(
i
));
}
if
(
cd
)
goto
found
;
}
}
}
}
else
{
if
(
pIsTypeDef
)
*
pIsTypeDef
=
FALSE
;
return
Doxygen
::
classSDict
.
find
(
name
);
}
else
{
if
(
pIsTypeDef
)
*
pIsTypeDef
=
FALSE
;
if
(
scope
!=
Doxygen
::
globalScope
)
cd
=
Doxygen
::
classSDict
.
find
(
scope
->
name
()
+
"::"
+
name
);
else
cd
=
Doxygen
::
classSDict
.
find
(
name
);
if
(
cd
)
goto
found
;
}
if
(
scope
==
Doxygen
::
globalScope
)
scope
=
0
;
else
if
(
scope
)
scope
=
scope
->
getOuterScope
();
//fprintf(stderr,"scope=%p\n",scope);
}
while
(
scope
);
found:
//fprintf(stderr, "getResolvedClass()=%s\n",cd?cd->name().data():"<none>");
return
cd
;
}
static
bool
findOperator
(
const
QCString
&
s
,
int
i
)
...
...
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