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
1c51f44b
Commit
1c51f44b
authored
Dec 28, 2004
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release-1.3.9.1-20041228
parent
939d1c84
Changes
41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
1114 additions
and
771 deletions
+1114
-771
INSTALL
INSTALL
+2
-2
README
README
+2
-2
VERSION
VERSION
+1
-1
config.doc
doc/config.doc
+54
-2
install.doc
doc/install.doc
+8
-30
language.doc
doc/language.doc
+6
-5
translator_report.txt
doc/translator_report.txt
+5
-15
doxygen.spec
packages/rpm/doxygen.spec
+1
-1
classdef.cpp
src/classdef.cpp
+79
-67
classdef.h
src/classdef.h
+1
-0
cmdmapper.cpp
src/cmdmapper.cpp
+1
-1
cmdmapper.h
src/cmdmapper.h
+1
-1
commentcnv.l
src/commentcnv.l
+33
-5
config.l
src/config.l
+65
-138
dirdef.cpp
src/dirdef.cpp
+23
-8
docparser.cpp
src/docparser.cpp
+89
-82
docparser.h
src/docparser.h
+17
-17
docvisitor.h
src/docvisitor.h
+3
-3
dot.cpp
src/dot.cpp
+294
-126
dot.h
src/dot.h
+22
-0
doxygen.cpp
src/doxygen.cpp
+79
-57
filedef.cpp
src/filedef.cpp
+60
-5
filedef.h
src/filedef.h
+11
-2
htmldocvisitor.cpp
src/htmldocvisitor.cpp
+18
-18
htmldocvisitor.h
src/htmldocvisitor.h
+2
-2
htmlgen.cpp
src/htmlgen.cpp
+7
-2
latexdocvisitor.cpp
src/latexdocvisitor.cpp
+18
-18
latexdocvisitor.h
src/latexdocvisitor.h
+2
-2
mandocvisitor.cpp
src/mandocvisitor.cpp
+18
-18
mandocvisitor.h
src/mandocvisitor.h
+2
-2
memberdef.cpp
src/memberdef.cpp
+4
-4
memberdef.h
src/memberdef.h
+1
-4
memberlist.cpp
src/memberlist.cpp
+0
-1
message.cpp
src/message.cpp
+91
-59
perlmodgen.cpp
src/perlmodgen.cpp
+12
-12
printdocvisitor.h
src/printdocvisitor.h
+10
-10
rtfdocvisitor.cpp
src/rtfdocvisitor.cpp
+20
-20
rtfdocvisitor.h
src/rtfdocvisitor.h
+2
-2
scanner.l
src/scanner.l
+37
-14
xmldocvisitor.cpp
src/xmldocvisitor.cpp
+11
-11
xmldocvisitor.h
src/xmldocvisitor.h
+2
-2
No files found.
INSTALL
View file @
1c51f44b
DOXYGEN Version 1.3.9.1-2004122
4
DOXYGEN Version 1.3.9.1-2004122
8
Please read the installation section of the manual
(http://www.doxygen.org/install.html) for instructions.
--------
Dimitri van Heesch (2
4
December 2004)
Dimitri van Heesch (2
8
December 2004)
README
View file @
1c51f44b
DOXYGEN Version 1.3.9.1_2004122
4
DOXYGEN Version 1.3.9.1_2004122
8
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) (2
4
December 2004)
Dimitri van Heesch (dimitri@stack.nl) (2
8
December 2004)
VERSION
View file @
1c51f44b
1.3.9.1-2004122
4
1.3.9.1-2004122
8
doc/config.doc
View file @
1c51f44b
...
...
@@ -19,7 +19,7 @@
\
section
config_format
Format
A
configuration
file
is
a
free
-
form
ASCII
text
file
with
a
structure
that
is
similar
to
that
of
a
Makefile
,
default
name
\
c
Doxyfile
.
It
is
that
is
similar
to
that
of
a
Makefile
,
with
the
default
name
\
c
Doxyfile
.
It
is
parsed
by
\
c
doxygen
.
The
file
may
contain
tabs
and
newlines
for
formatting
purposes
.
The
statements
in
the
file
are
case
-
sensitive
.
Comments
may
be
placed
anywhere
within
the
file
(
except
within
quotes
).
...
...
@@ -35,7 +35,7 @@ new values to the list. Values are sequences of non-blanks. If the value should
contain
one
or
more
blanks
it
must
be
surrounded
by
quotes
(&
quot
;...&
quot
;).
Multiple
lines
can
be
concatenated
by
inserting
a
backslash
(\\)
as
the
last
character
of
a
line
.
Environment
variables
can
be
expanded
using
the
pattern
\
c
\$(
ENV_VARIABLE_NAME
)
.
using
the
pattern
<
code
>\$(
ENV_VARIABLE_NAME
)</
code
>
.
You
can
also
include
part
of
a
configuration
file
from
another
configuration
file
using
a
<
code
>\@
INCLUDE
</
code
>
tag
as
follows
:
...
...
@@ -77,7 +77,9 @@ followed by the descriptions of the tags grouped by category.
\
refitem
cfg_disable_index
DISABLE_INDEX
\
refitem
cfg_distribute_group_doc
DISTRIBUTE_GROUP_DOC
\
refitem
cfg_dot_image_format
DOT_IMAGE_FORMAT
\
refitem
cfg_dot_multi_targets
DOT_MULTI_TARGETS
\
refitem
cfg_dot_path
DOT_PATH
\
refitem
cfg_dot_transparent
DOT_TRANSPARENT
\
refitem
cfg_dotfile_dirs
DOTFILE_DIRS
\
refitem
cfg_enable_preprocessing
ENABLE_PREPROCESSING
\
refitem
cfg_enum_values_per_line
ENUM_VALUES_PER_LINE
...
...
@@ -98,6 +100,7 @@ followed by the descriptions of the tags grouped by category.
\
refitem
cfg_extract_private
EXTRACT_PRIVATE
\
refitem
cfg_extract_static
EXTRACT_STATIC
\
refitem
cfg_file_patterns
FILE_PATTERNS
\
refitem
cfg_file_version_filter
FILE_VERSION_FILTER
\
refitem
cfg_filter_patterns
FILTER_PATTERNS
\
refitem
cfg_filter_source_files
FILTER_SOURCE_FILES
\
refitem
cfg_full_path_names
FULL_PATH_NAMES
...
...
@@ -726,6 +729,39 @@ documentation.
*.
h
++
*.
idl
*.
odl
*.
cs
*.
php
*.
php3
*.
inc
*.
m
*.
mm
</
code
>
\
anchor
cfg_file_version_filter
<
dt
>\
c
FILE_VERSION_FILTER
<
dd
>
\
addindex
FILE_VERSION_FILTER
The
\
c
FILE_VERSION_FILTER
tag
can
be
used
to
specify
a
program
or
script
that
doxygen
should
invoke
to
get
the
current
version
for
each
file
(
typically
from
the
version
control
system
).
Doxygen
will
invoke
the
program
by
executing
(
via
popen
())
the
command
<
code
>
command
input
-
file
</
code
>,
where
\
c
command
is
the
value
of
the
\
c
FILE_VERSION_FILTER
tag
,
and
\
c
input
-
file
is
the
name
of
an
input
file
provided
by
doxygen
.
Whatever
the
progam
writes
to
standard
output
is
used
as
the
file
version
.
Example
of
using
a
shell
script
as
a
filter
for
Unix
:
\
verbatim
FILE_VERSION_FILTER
=
"/bin/sh versionfilter.sh"
\
endverbatim
Example
shell
script
for
CVS
:
\
verbatim
#
!/bin/sh
cvs
status
$
1
|
sed
-
n
's/^[ \]*Working revision:[ \t]*\([0-9][0-9\.]*\).*/\1/p'
\
endverbatim
Example
shell
script
for
Subversion
:
\
verbatim
#
!/bin/sh
svn
stat
-
v
$
1
|
sed
-
n
's/^[ A-Z?\*|!]\{1,15\}/r/;s/ \{1,15\}/\/r/;s/ .*//p'
\
endverbatim
Example
filter
for
ClearCase
:
\
verbatim
FILE_VERSION_INFO
=
"cleartool desc -fmt \%Vn"
\
endverbatim
\
anchor
cfg_recursive
<
dt
>\
c
RECURSIVE
<
dd
>
\
addindex
RECURSIVE
...
...
@@ -1655,6 +1691,22 @@ not depth-constraint.
the specified constraint. Beware that most browsers cannot cope with very
large images.
\anchor cfg_dot_transparent
<dt>\c DOT_TRANSPARENT <dd>
\addindex DOT_TRANSPARENT
Set the \c DOT_TRANSPARENT tag to \c YES to generate images with a transparent
background. This is disabled by default, which results in a white background.
Warning: Depending on the platform used, enabling this option may lead to badly
anti-aliased labels on the edges of a graph (i.e. they become hard to read).
\anchor cfg_dot_multi_targets
<dt>\c DOT_MULTI_TARGETS <dd>
\addindex DOT_MULTI_TARGET
Set the \c DOT_MULTI_TARGETS tag to \c YES allow dot to generate multiple output
files in one run (i.e. multiple -o and -T options on the command line). This
makes dot run faster, but since only newer versions of dot (>1.8.10)
support this, this feature is disabled by default.
\anchor cfg_generate_legend
<dt>\c GENERATE_LEGEND <dd>
\addindex GENERATE_LEGEND
...
...
doc/install.doc
View file @
1c51f44b
...
...
@@ -104,9 +104,9 @@ Compilation is now done by performing the following steps:
See the <code>PLATFORMS</code> file for a list of possible platform
options.
If you have Qt-
2.1.x installed and want to build the GUI front-end, you
should run the configure script with the <code>--with-doxywizard</code>
option:
If you have Qt-
3.2.x or higher installed and want to build the GUI
front-end, you should run the configure script with
the <code>--with-doxywizard</code>
option:
\verbatim
configure --with-doxywizard
...
...
@@ -297,32 +297,10 @@ ce_parse.cpp:
<b>Sun compiler problems</b>
I tried compiling doxygen only with Sun's C++ WorkShop Compiler
version 5.0 (I used <code>./configure --platform solaris-cc</code>)
Qt-2.x.y is required for this compiler (Qt-1.44 has problems with the bool
type).
Compiling the \c doxygen binary went ok, but while linking <code>doxytag</code> I got a
lot of link errors, like these:
\verbatim
QList<PageInfo>::__vtbl /home/dimitri/doxygen/
objects/SunWS_cache/CC_obj_6/6c3eO4IogMT2vrlGCQUQ.o
[Hint: try checking whether the first non-inlined, non-pure
virtual function of class QList<PageInfo> is defined]
\endverbatim
These are generated because the compiler is confused about the object sharing
between \c doxygen and \c doxytag. To compile \c doxytag
anyway do:
\verbatim
rm -rf objects
mkdir objects
cd src
gmake -f Makefile.doxytag
\endverbatim
It appears that doxygen doesn't work properly if it is compiled
with Sun's C++ WorkShop Compiler. I cannot verify this myself as I do
not have access to a Solaris machine with this compiler. With GNU compiler
it does work.
when configuring with <code>--static</code> I got:
...
...
@@ -467,7 +445,7 @@ Here is what is required:
still a requirement however. A commercial license to build
doxywizard with the latest Qt library was kindly donated to me
by the nice people at <a href="http://www.trolltech.com">TrollTech</a>.
See doxygen download page for a link.
See doxygen download page for a link.
<li>If you used WinZip to extract the tar archive it will (apparently) not
create empty folders, so you have to add the folders
...
...
doc/language.doc
View file @
1c51f44b
...
...
@@ -23,7 +23,7 @@ text fragments, generated by doxygen, can be produced in languages other
than English (the default). The output language is chosen through the
configuration file (with default name and known as Doxyfile).
Currently (version 1.3.9.1-20041
129
), 30 languages
Currently (version 1.3.9.1-20041
221
), 30 languages
are supported (sorted alphabetically):
Afrikaans, Brazilian Portuguese, Catalan, Chinese, Chinese
Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French,
...
...
@@ -160,9 +160,9 @@ when the translator was updated.
</tr>
<tr bgcolor="#ffffff">
<td>Korean</td>
<td>Richard Kim</td>
<td>ryk at dspwiz dot com</td>
<td>
1.3.8
</td>
<td>
SooYoung Jung<br>
Richard Kim</td>
<td>
jung5000 at gmail dot com<br>
ryk at dspwiz dot com</td>
<td>
up-to-date
</td>
</tr>
<tr bgcolor="#ffffff">
<td>KoreanEn</td>
...
...
@@ -299,7 +299,8 @@ when the translator was updated.
\hline
JapaneseEn & see the Japanese language & {\tt\tiny ~} & English based \\
\hline
Korean & Richard Kim & {\tt\tiny ryk@dspwiz.com} & 1.3.8 \\
Korean & SooYoung Jung & {\tt\tiny jung5000@gmail.com} & up-to-date \\
~ & Richard Kim & {\tt\tiny ryk@dspwiz.com} & ~ \\
\hline
KoreanEn & see the Korean language & {\tt\tiny ~} & English based \\
\hline
...
...
doc/translator_report.txt
View file @
1c51f44b
(1.3.9.1-20041
129
)
(1.3.9.1-20041
221
)
Doxygen supports the following 30 languages (sorted alphabetically):
...
...
@@ -8,7 +8,7 @@ German, Greek, Hungarian, Italian, Japanese (+En), Korean (+En),
Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Serbian,
Slovak, Slovene, Spanish, Swedish, and Ukrainian.
Of them, 1
4 translators are up-to-date, 16
translators are based on
Of them, 1
5 translators are up-to-date, 15
translators are based on
some adapter class, and 2 are English based.
----------------------------------------------------------------------
...
...
@@ -27,6 +27,7 @@ still may be some details listed even for them:
TranslatorGerman
TranslatorHungarian
TranslatorItalian
TranslatorKorean -- Change the base class to Translator.
TranslatorPolish
TranslatorRussian
TranslatorSerbian
...
...
@@ -44,7 +45,6 @@ must be implemented to become up-to-date:
TranslatorAfrikaans 1.3.9 6 methods to implement
TranslatorSpanish 1.3.8 7 methods to implement
TranslatorLithuanian 1.3.8 7 methods to implement
TranslatorKorean 1.3.8 7 methods to implement
TranslatorChinesetraditional 1.3.8 7 methods to implement
TranslatorPortuguese 1.3.3 11 methods to implement
TranslatorSlovak 1.2.18 20 methods to implement
...
...
@@ -340,20 +340,10 @@ TranslatorJapaneseEn (TranslatorEnglish) 196 methods to implement
virtual QCString idLanguageCharset()
TranslatorKorean (TranslatorAdapter_1_3_
8) 7 methods to implement
TranslatorKorean (TranslatorAdapter_1_3_
9)
----------------
Implements 194 of the required methods.
Missing methods (should be implemented):
virtual QCString trDirIndex()
virtual QCString trDirDocumentation()
virtual QCString trDirectories()
virtual QCString trDirDescription()
virtual QCString trSourceFile(QCString & filename)
virtual QCString trDirReference(const char * dirName)
virtual QCString trDir(bool first_capital, bool singular)
Implements 201 of the required methods.
TranslatorKoreanEn (TranslatorEnglish) 196 methods to implement
...
...
packages/rpm/doxygen.spec
View file @
1c51f44b
Summary: A documentation system for C/C++.
Name: doxygen
Version: 1.3.9.1_2004122
4
Version: 1.3.9.1_2004122
8
Release: 1
Epoch: 1
Source0: ftp://ftp.stack.nl/pub/users/dimitri/%{name}-%{version}.src.tar.gz
...
...
src/classdef.cpp
View file @
1c51f44b
...
...
@@ -936,6 +936,84 @@ void ClassDef::writeDetailedDescription(OutputList &ol, const QCString &pageType
}
}
void
ClassDef
::
showUsedFiles
(
OutputList
&
ol
)
{
if
(
Config_getBool
(
"SHOW_USED_FILES"
))
{
ol
.
writeRuler
();
ol
.
parseText
(
theTranslator
->
trGeneratedFromFiles
(
m_isObjC
&&
m_compType
==
Interface
?
Class
:
m_compType
,
m_files
.
count
()
==
1
));
bool
first
=
TRUE
;
const
char
*
file
=
m_files
.
first
();
while
(
file
)
{
bool
ambig
;
FileDef
*
fd
=
findFileDef
(
Doxygen
::
inputNameDict
,
file
,
ambig
);
if
(
fd
)
{
if
(
first
)
{
first
=
FALSE
;
ol
.
startItemList
();
}
ol
.
writeListItem
();
QCString
path
=
fd
->
getPath
().
copy
();
if
(
Config_getBool
(
"FULL_PATH_NAMES"
))
{
ol
.
docify
(
stripFromPath
(
path
));
}
QCString
fname
=
fd
->
name
();
if
(
!
fd
->
getVersion
().
isEmpty
())
// append version if available
{
fname
+=
" ("
+
fd
->
getVersion
()
+
")"
;
}
// for HTML
ol
.
pushGeneratorState
();
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
if
(
fd
->
generateSourceFile
())
{
ol
.
writeObjectLink
(
0
,
fd
->
getSourceFileBase
(),
0
,
fname
);
}
else
if
(
fd
->
isLinkable
())
{
ol
.
writeObjectLink
(
fd
->
getReference
(),
fd
->
getOutputFileBase
(),
0
,
fname
);
}
else
{
ol
.
docify
(
fname
);
}
ol
.
popGeneratorState
();
// for other output formats
ol
.
pushGeneratorState
();
ol
.
disable
(
OutputGenerator
::
Html
);
if
(
fd
->
isLinkable
())
{
ol
.
writeObjectLink
(
fd
->
getReference
(),
fd
->
getOutputFileBase
(),
0
,
fname
);
}
else
{
ol
.
docify
(
fname
);
}
ol
.
popGeneratorState
();
}
file
=
m_files
.
next
();
}
if
(
!
first
)
ol
.
endItemList
();
}
}
// write all documentation for this class
void
ClassDef
::
writeDocumentation
(
OutputList
&
ol
)
{
...
...
@@ -1389,73 +1467,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
ol
.
pushGeneratorState
();
ol
.
disable
(
OutputGenerator
::
Man
);
if
(
Config_getBool
(
"SHOW_USED_FILES"
))
{
ol
.
writeRuler
();
ol
.
parseText
(
theTranslator
->
trGeneratedFromFiles
(
m_isObjC
&&
m_compType
==
Interface
?
Class
:
m_compType
,
m_files
.
count
()
==
1
));
bool
first
=
TRUE
;
const
char
*
file
=
m_files
.
first
();
while
(
file
)
{
bool
ambig
;
FileDef
*
fd
=
findFileDef
(
Doxygen
::
inputNameDict
,
file
,
ambig
);
if
(
fd
)
{
if
(
first
)
{
first
=
FALSE
;
ol
.
startItemList
();
}
ol
.
writeListItem
();
QCString
path
=
fd
->
getPath
().
copy
();
if
(
Config_getBool
(
"FULL_PATH_NAMES"
))
{
ol
.
docify
(
stripFromPath
(
path
));
}
// for HTML
ol
.
pushGeneratorState
();
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
if
(
fd
->
generateSourceFile
())
{
ol
.
writeObjectLink
(
0
,
fd
->
getSourceFileBase
(),
0
,
fd
->
name
());
}
else
if
(
fd
->
isLinkable
())
{
ol
.
writeObjectLink
(
fd
->
getReference
(),
fd
->
getOutputFileBase
(),
0
,
fd
->
name
());
}
else
{
ol
.
docify
(
fd
->
name
());
}
ol
.
popGeneratorState
();
// for other output formats
ol
.
pushGeneratorState
();
ol
.
disable
(
OutputGenerator
::
Html
);
if
(
fd
->
isLinkable
())
{
ol
.
writeObjectLink
(
fd
->
getReference
(),
fd
->
getOutputFileBase
(),
0
,
fd
->
name
());
}
else
{
ol
.
docify
(
fd
->
name
());
}
ol
.
popGeneratorState
();
}
file
=
m_files
.
next
();
}
if
(
!
first
)
ol
.
endItemList
();
}
showUsedFiles
(
ol
);
// write Author section (Man only)
ol
.
enable
(
OutputGenerator
::
Man
);
...
...
src/classdef.h
View file @
1c51f44b
...
...
@@ -333,6 +333,7 @@ class ClassDef : public Definition
void
addUsedInterfaceClasses
(
MemberDef
*
md
,
const
char
*
typeStr
);
bool
hasExamples
();
bool
hasNonReferenceSuperClass
();
void
showUsedFiles
(
OutputList
&
ol
);
/*! \} Interal API */
...
...
src/cmdmapper.cpp
View file @
1c51f44b
...
...
@@ -99,7 +99,7 @@ CommandMap cmdMap[] =
{
"$"
,
CMD_DOLLAR
},
{
"#"
,
CMD_HASH
},
{
"%"
,
CMD_PERCENT
},
{
"~"
,
CMD_LANGSWITCH
},
//
{ "~", CMD_LANGSWITCH },
{
"_internalref"
,
CMD_INTERNALREF
},
{
"dot"
,
CMD_DOT
},
{
"enddot"
,
CMD_ENDDOT
},
...
...
src/cmdmapper.h
View file @
1c51f44b
...
...
@@ -66,7 +66,7 @@ enum CommandType
CMD_INTERNAL
=
32
,
CMD_INTERNALREF
=
33
,
CMD_INVARIANT
=
34
|
SIMPLESECT_BIT
,
CMD_LANGSWITCH
=
35
,
//
CMD_LANGSWITCH = 35,
CMD_LATEXONLY
=
36
,
CMD_LESS
=
37
,
CMD_LI
=
38
,
...
...
src/commentcnv.l
View file @
1c51f44b
...
...
@@ -245,6 +245,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
%x Verbatim
%x ReadLine
%x CondLine
%x SkipLang
%%
...
...
@@ -290,18 +291,18 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
copyToOutput(yytext,yyleng);
BEGIN(CComment);
}
<Scan>
"\\
verbatim" { /* start of a verbatim block */
<Scan>
[\\@]"
verbatim" { /* start of a verbatim block */
copyToOutput(yytext,yyleng);
BEGIN(Verbatim);
}
<Scan>. { /* any other character */
copyToOutput(yytext,yyleng);
}
<Verbatim>
"\\endverbatim"
{ /* end of verbatim block */
<Verbatim>
[\\@]"endverbatim"
{ /* end of verbatim block */
copyToOutput(yytext,yyleng);
BEGIN(Scan);
}
<Verbatim>[^\\\n]* { /* any character not a backslash or new line */
<Verbatim>[^
@
\\\n]* { /* any character not a backslash or new line */
copyToOutput(yytext,yyleng);
}
<Verbatim>\n { /* new line in verbatim block */
...
...
@@ -310,6 +311,25 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
<Verbatim>. { /* any other character */
copyToOutput(yytext,yyleng);
}
<SkipLang>[\\@]"~"[a-zA-Z]* { /* end of verbatim block */
QCString langId = &yytext[2];
if (langId.isEmpty() ||
stricmp(Config_getEnum("OUTPUT_LANGUAGE"),langId)==0)
{ // enable language specific section
BEGIN(CComment);
}
}
<SkipLang>[^*@\\\n]* { /* any character not a *, @, backslash or new line */
}
<SkipLang>\n { /* new line in verbatim block */
copyToOutput(yytext,yyleng);
}
<SkipLang>"*/" { /* end of comment block */
copyToOutput(yytext,yyleng);
BEGIN(Scan);
}
<SkipLang>. { /* any other character */
}
<SkipString>\\. { /* escaped character in string */
copyToOutput(yytext,yyleng);
}
...
...
@@ -323,7 +343,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
<SkipString>\n { /* new line inside string (illegal for some compilers) */
copyToOutput(yytext,yyleng);
}
<CComment>[^\\@*\n]* { /* anything that is not a '*' */
<CComment>[^\\@*\n]* { /* anything that is not a '*'
or command
*/
copyToOutput(yytext,yyleng);
}
<CComment>"*"+[^*/\\@\n]* { /* stars without slashes */
...
...
@@ -388,9 +408,17 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
copyToOutput(yytext,yyleng);
BEGIN(g_readLineCtx);
}
<CComment,ReadLine>("\\\\"|"@@")[a-z_A-Z][a-z_A-Z0-9]*[ \t]* { // escaped command
<CComment,ReadLine>("\\\\"|"@@")[
~
a-z_A-Z][a-z_A-Z0-9]*[ \t]* { // escaped command
copyToOutput(yytext,yyleng);
}
<CComment>[@\\]"~"[a-zA-Z]* { // language switch
QCString langId = &yytext[2];
if (!langId.isEmpty() &&
stricmp(Config_getEnum("OUTPUT_LANGUAGE"),langId)!=0)
{
BEGIN(SkipLang);
}
}
<CComment,ReadLine>[\\@]"cond"[ \t]+ { // conditional section
g_condCtx = YY_START;
BEGIN(CondLine);
...
...
src/config.l
View file @
1c51f44b
This diff is collapsed.
Click to expand it.
src/dirdef.cpp
View file @
1c51f44b
...
...
@@ -498,6 +498,10 @@ DirDef *DirDef::mergeDirectoryInTree(const QCString &path)
void
DirDef
::
writeDepGraph
(
QTextStream
&
t
)
{
t
<<
"digraph G {
\n
"
;
if
(
Config_getBool
(
"DOT_TRANSPARENT"
))
{
t
<<
" bgcolor=transparent;
\n
"
;
}
t
<<
" compound=true
\n
"
;
t
<<
" node [ fontsize=10, fontname=
\"
Helvetica
\"
];
\n
"
;
t
<<
" edge [ labelfontsize=9, labelfontname=
\"
Helvetica
\"
];
\n
"
;
...
...
@@ -583,7 +587,11 @@ void DirDef::writeDepGraph(QTextStream &t)
<<
usedDir
->
shortName
()
<<
"
\"
"
;
if
(
usedDir
->
isCluster
())
{
t
<<
" color=
\"
red
\"
fillcolor=
\"
white
\"
style=
\"
filled
\"
"
;
if
(
!
Config_getBool
(
"DOT_TRANSPARENT"
))
{
t
<<
" fillcolor=
\"
white
\"
style=
\"
filled
\"
"
;
}
t
<<
" color=
\"
red
\"
"
;
}
t
<<
" URL=
\"
"
<<
usedDir
->
getOutputFileBase
()
<<
Doxygen
::
htmlFileExtension
<<
"
\"
];
\n
"
;
...
...
@@ -831,13 +839,20 @@ void writeDirDependencyGraph(const char *dirName)
dir
->
writeDepGraph
(
t
);
}
f
.
close
();
QCString
dotArgs
(
4096
);
QCString
outFile
=
QCString
(
dirName
)
+
"/"
+
dir
->
getOutputFileBase
()
+
"_dep.gif"
;
dotArgs
.
sprintf
(
"%s -Tgif -o %s"
,
path
.
data
(),
outFile
.
data
());
if
(
iSystem
(
Config_getString
(
"DOT_PATH"
)
+
"dot"
,
dotArgs
)
!=
0
)
{
err
(
"Problems running dot. Check your installation!
\n
"
);
}
QCString
imgExt
=
Config_getEnum
(
"DOT_IMAGE_FORMAT"
);
QCString
outFile
=
QCString
(
dirName
)
+
"/"
+
dir
->
getOutputFileBase
()
+
"_dep."
+
imgExt
;
DotRunner
dotRun
(
path
);
dotRun
.
addJob
(
imgExt
,
outFile
);
dotRun
.
run
();
//QCString dotArgs(4096);
//dotArgs.sprintf("%s -Tgif -o %s",path.data(),outFile.data());
//if (iSystem(Config_getString("DOT_PATH")+"dot",dotArgs)!=0)
//{
// err("Problems running dot. Check your installation!\n");
//}
}
out
<<
"</body></html>"
;
}
...
...
src/docparser.cpp
View file @
1c51f44b
...
...
@@ -505,16 +505,16 @@ static bool insideOL(DocNode *n)
//---------------------------------------------------------------------------
/*! Returns TRUE iff node n is a child of a language node */
static
bool
insideLang
(
DocNode
*
n
)
{
while
(
n
)
{
if
(
n
->
kind
()
==
DocNode
::
Kind_Language
)
return
TRUE
;
n
=
n
->
parent
();
}
return
FALSE
;
}
/
//
*! Returns TRUE iff node n is a child of a language node */
//
static bool insideLang(DocNode *n)
//
{
//
while (n)
//
{
//
if (n->kind()==DocNode::Kind_Language) return TRUE;
//
n=n->parent();
//
}
//
return FALSE;
//
}
//---------------------------------------------------------------------------
...
...
@@ -673,6 +673,10 @@ static int handleStyleArgument(DocNode *parent,QList<DocNode> &children,
g_token
->
name
.
data
(),
cmdName
.
data
());
break
;
case
TK_HTMLTAG
:
if
(
insideLI
(
parent
)
&&
HtmlTagMapper
::
map
(
g_token
->
name
)
&&
g_token
->
endTag
)
{
// ignore </li> as the end of a style command
continue
;
}
return
tok
;
break
;
default:
...
...
@@ -844,7 +848,7 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children)
if
(
!
g_insideHtmlLink
&&
resolveRef
(
g_context
,
g_token
->
name
,
g_inSeeBlock
,
&
compound
,
&
member
))
{
//printf("resolveRef %s = %p (linkable?=%d)\n",g_token->name.data(),member,member
->isLinkable()
);
//printf("resolveRef %s = %p (linkable?=%d)\n",g_token->name.data(),member,member
? member->isLinkable() : FALSE
);
if
(
member
)
// member link
{
children
.
append
(
new
...
...
@@ -861,6 +865,10 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children)
{
name
=
g_token
->
name
;
}
else
if
(
compound
->
definitionType
()
==
Definition
::
TypeGroup
)
{
name
=
((
GroupDef
*
)
compound
)
->
groupTitle
();
}
children
.
append
(
new
DocLinkedWord
(
parent
,
name
,
compound
->
getReference
(),
...
...
@@ -1662,30 +1670,30 @@ DocFormula::DocFormula(DocNode *parent,int id) :
//---------------------------------------------------------------------------
int
DocLanguage
::
parse
()
{
int
retval
;
DBG
((
"DocLanguage::parse() start
\n
"
));
g_nodeStack
.
push
(
this
);
// parse one or more paragraphs
bool
isFirst
=
TRUE
;
DocPara
*
par
=
0
;
do
{
par
=
new
DocPara
(
this
);
if
(
isFirst
)
{
par
->
markFirst
();
isFirst
=
FALSE
;
}
m_children
.
append
(
par
);
retval
=
par
->
parse
();
}
while
(
retval
==
TK_NEWPARA
);
if
(
par
)
par
->
markLast
();
DBG
((
"DocLanguage::parse() end
\n
"
));
DocNode
*
n
=
g_nodeStack
.
pop
();
ASSERT
(
n
==
this
);
return
retval
;
}
//
int DocLanguage::parse()
//
{
//
int retval;
//
DBG(("DocLanguage::parse() start\n"));
//
g_nodeStack.push(this);
//
//
// parse one or more paragraphs
//
bool isFirst=TRUE;
//
DocPara *par=0;
//
do
//
{
//
par = new DocPara(this);
//
if (isFirst) { par->markFirst(); isFirst=FALSE; }
//
m_children.append(par);
//
retval=par->parse();
//
}
//
while (retval==TK_NEWPARA);
//
if (par) par->markLast();
//
//
DBG(("DocLanguage::parse() end\n"));
//
DocNode *n = g_nodeStack.pop();
//
ASSERT(n==this);
//
return retval;
//
}
//---------------------------------------------------------------------------
...
...
@@ -3627,50 +3635,49 @@ endref:
doctokenizerYYsetStatePara
();
}
int
DocPara
::
handleLanguageSwitch
()
{
int
retval
=
RetVal_OK
;
if
(
!
insideLang
(
this
))
// start a language section at this level
{
do
{
int
tok
=
doctokenizerYYlex
();
if
(
tok
==
TK_WHITESPACE
)
{
// end of language specific sections
retval
=
RetVal_OK
;
goto
endlang
;
}
else
if
(
tok
==
TK_NEWPARA
)
{
// end of language specific sections
retval
=
tok
;
goto
endlang
;
}
else
if
(
tok
==
TK_WORD
||
tok
==
TK_LNKWORD
)
{
DocLanguage
*
dl
=
new
DocLanguage
(
this
,
g_token
->
name
);
m_children
.
append
(
dl
);
retval
=
dl
->
parse
();
}
else
{
warn_doc_error
(
g_fileName
,
doctokenizerYYlineno
,
"Warning: Unexpected token %s as parameter of
\\
~"
,
tokToString
(
tok
));
goto
endlang
;
}
}
while
(
retval
==
RetVal_SwitchLang
);
}
else
// return from this section
{
retval
=
RetVal_SwitchLang
;
}
endlang
:
return
retval
;
}
//int DocPara::handleLanguageSwitch()
//{
// int retval=RetVal_OK;
//
// if (!insideLang(this)) // start a language section at this level
// {
// do
// {
// int tok = doctokenizerYYlex();
// if (tok==TK_WHITESPACE)
// {
// // end of language specific sections
// retval=RetVal_OK;
// goto endlang;
// }
// else if (tok==TK_NEWPARA)
// {
// // end of language specific sections
// retval = tok;
// goto endlang;
// }
// else if (tok==TK_WORD || tok==TK_LNKWORD)
// {
// DocLanguage *dl = new DocLanguage(this,g_token->name);
// m_children.append(dl);
// retval = dl->parse();
// }
// else
// {
// warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unexpected token %s as parameter of \\~",
// tokToString(tok));
// goto endlang;
// }
// }
// while (retval==RetVal_SwitchLang);
// }
// else // return from this section
// {
// retval = RetVal_SwitchLang;
// }
//endlang:
// return retval;
//}
void
DocPara
::
handleInclude
(
const
QString
&
cmdName
,
DocInclude
::
Type
t
)
{
...
...
@@ -4091,9 +4098,9 @@ int DocPara::handleCommand(const QString &cmdName)
m_children
.
append
(
form
);
}
break
;
case
CMD_LANGSWITCH
:
retval
=
handleLanguageSwitch
();
break
;
//
case CMD_LANGSWITCH:
//
retval = handleLanguageSwitch();
//
break;
case
CMD_INTERNALREF
:
warn_doc_error
(
g_fileName
,
doctokenizerYYlineno
,
"Warning: unexpected command %s"
,
g_token
->
name
.
data
());
break
;
...
...
src/docparser.h
View file @
1c51f44b
...
...
@@ -124,7 +124,7 @@ class DocNode
Kind_Formula
=
38
,
Kind_SecRefItem
=
39
,
Kind_SecRefList
=
40
,
Kind_Language
=
41
,
//
Kind_Language = 41,
Kind_LinkedWord
=
42
,
Kind_ParamSect
=
43
,
Kind_ParamList
=
44
,
...
...
@@ -695,21 +695,21 @@ class DocInternalRef : public CompAccept<DocInternalRef>, public DocNode
};
/*! @brief Node representing a Language specific section */
class
DocLanguage
:
public
CompAccept
<
DocLanguage
>
,
public
DocNode
{
public
:
DocLanguage
(
DocNode
*
parent
,
const
QString
&
id
)
:
m_parent
(
parent
),
m_id
(
id
)
{}
QString
id
()
const
{
return
m_id
;
}
Kind
kind
()
const
{
return
Kind_Language
;
}
DocNode
*
parent
()
const
{
return
m_parent
;
}
void
accept
(
DocVisitor
*
v
)
{
CompAccept
<
DocLanguage
>::
accept
(
this
,
v
);
}
int
parse
();
private
:
DocNode
*
m_parent
;
QString
m_id
;
};
//
class DocLanguage : public CompAccept<DocLanguage>, public DocNode
//
{
//
public:
//
DocLanguage(DocNode *parent,const QString &id) :
//
m_parent(parent), m_id(id) {}
//
QString id() const { return m_id; }
//
Kind kind() const { return Kind_Language; }
//
DocNode *parent() const { return m_parent; }
//
void accept(DocVisitor *v) { CompAccept<DocLanguage>::accept(this,v); }
//
int parse();
//
//
private:
//
DocNode * m_parent;
//
QString m_id;
//
};
/*! @brief Node representing a Hypertext reference */
class
DocHRef
:
public
CompAccept
<
DocHRef
>
,
public
DocNode
...
...
@@ -973,7 +973,7 @@ class DocPara : public CompAccept<DocPara>, public DocNode
void
handleRef
(
const
QString
&
cmdName
);
void
handleSection
(
const
QString
&
cmdName
);
int
handleHtmlHeader
(
const
HtmlAttribList
&
tagHtmlAttribs
,
int
level
);
int
handleLanguageSwitch
();
//
int handleLanguageSwitch();
private
:
DocNode
*
m_parent
;
...
...
src/docvisitor.h
View file @
1c51f44b
...
...
@@ -69,7 +69,7 @@ class DocRef;
class
DocFormula
;
class
DocSecRefItem
;
class
DocSecRefList
;
class
DocLanguage
;
//
class DocLanguage;
class
DocLinkedWord
;
class
DocParamSect
;
class
DocParamList
;
...
...
@@ -163,8 +163,8 @@ class DocVisitor
virtual
void
visitPost
(
DocSecRefItem
*
)
=
0
;
virtual
void
visitPre
(
DocSecRefList
*
)
=
0
;
virtual
void
visitPost
(
DocSecRefList
*
)
=
0
;
virtual
void
visitPre
(
DocLanguage
*
)
=
0
;
virtual
void
visitPost
(
DocLanguage
*
)
=
0
;
//
virtual void visitPre(DocLanguage *) = 0;
//
virtual void visitPost(DocLanguage *) = 0;
virtual
void
visitPre
(
DocParamSect
*
)
=
0
;
virtual
void
visitPost
(
DocParamSect
*
)
=
0
;
virtual
void
visitPre
(
DocParamList
*
)
=
0
;
...
...
src/dot.cpp
View file @
1c51f44b
This diff is collapsed.
Click to expand it.
src/dot.h
View file @
1c51f44b
...
...
@@ -286,6 +286,28 @@ class DotGroupCollaboration
QList
<
Edge
>
m_edges
;
};
/** @brief Helper class to run dot from doxygen.
*/
class
DotRunner
{
public
:
/** Creates a runner for a dot \a file. */
DotRunner
(
const
char
*
file
);
/** Adds an additional job to the run.
* Performing multiple jobs one file can be faster.
*/
void
addJob
(
const
char
*
format
,
const
char
*
output
);
/** Runs dot for all jobs added. */
bool
run
();
private
:
QList
<
QCString
>
m_jobs
;
QCString
m_file
;
};
void
generateGraphLegend
(
const
char
*
path
);
void
writeDotGraphFromFile
(
const
char
*
inFile
,
const
char
*
outDir
,
const
char
*
outFile
,
GraphOutputFormat
format
);
...
...
src/doxygen.cpp
View file @
1c51f44b
This diff is collapsed.
Click to expand it.
src/filedef.cpp
View file @
1c51f44b
...
...
@@ -34,6 +34,11 @@
#include "searchindex.h"
//#include "xml.h"
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define popen _popen
#define pclose _pclose
#endif
class
DevNullCodeDocInterface
:
public
BaseCodeDocInterface
{
public
:
...
...
@@ -91,6 +96,7 @@ FileDef::FileDef(const char *p,const char *nm,
}
memberGroupSDict
=
new
MemberGroupSDict
;
memberGroupSDict
->
setAutoDelete
(
TRUE
);
acquireFileVersion
();
}
/*! destroy the file definition */
...
...
@@ -212,6 +218,12 @@ void FileDef::writeDocumentation(OutputList &ol)
//printf("WriteDocumentation diskname=%s\n",diskname.data());
QCString
versionTitle
;
if
(
!
fileVersion
.
isEmpty
())
{
versionTitle
=
(
"("
+
fileVersion
+
")"
);
}
QCString
title
=
docname
+
versionTitle
;
QCString
pageTitle
=
theTranslator
->
trFileReference
(
docname
);
startFile
(
ol
,
getOutputFileBase
(),
name
(),
pageTitle
);
...
...
@@ -228,14 +240,22 @@ void FileDef::writeDocumentation(OutputList &ol)
ol
.
parseText
(
pageTitle
);
// other output formats
ol
.
popGeneratorState
();
addGroupListToTitle
(
ol
,
this
);
endTitle
(
ol
,
getOutputFileBase
(),
docnam
e
);
endTitle
(
ol
,
getOutputFileBase
(),
titl
e
);
}
else
{
startTitle
(
ol
,
getOutputFileBase
());
ol
.
parseText
(
pageTitle
);
addGroupListToTitle
(
ol
,
this
);
endTitle
(
ol
,
getOutputFileBase
(),
docname
);
endTitle
(
ol
,
getOutputFileBase
(),
title
);
}
if
(
!
fileVersion
.
isEmpty
())
{
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
ol
.
startProjectNumber
();
ol
.
docify
(
versionTitle
);
ol
.
endProjectNumber
();
ol
.
enableAll
();
}
if
(
Config_getBool
(
"SEARCHENGINE"
))
...
...
@@ -519,7 +539,12 @@ void FileDef::writeDocumentation(OutputList &ol)
/*! Write a source listing of this file to the output */
void
FileDef
::
writeSource
(
OutputList
&
ol
)
{
QCString
pageTitle
=
theTranslator
->
trSourceFile
(
docname
);
QCString
title
=
docname
;
if
(
!
fileVersion
.
isEmpty
())
{
title
+=
(
" ("
+
fileVersion
+
")"
);
}
QCString
pageTitle
=
theTranslator
->
trSourceFile
(
title
);
ol
.
disableAllBut
(
OutputGenerator
::
Html
);
startFile
(
ol
,
getSourceFileBase
(),
0
,
pageTitle
);
...
...
@@ -528,12 +553,12 @@ void FileDef::writeSource(OutputList &ol)
getDirDef
()
->
writeNavigationPath
(
ol
);
startTitle
(
ol
,
getOutputFileBase
());
ol
.
parseText
(
name
());
endTitle
(
ol
,
getOutputFileBase
(),
docnam
e
);
endTitle
(
ol
,
getOutputFileBase
(),
titl
e
);
}
else
{
startTitle
(
ol
,
0
);
ol
.
parseText
(
docnam
e
);
ol
.
parseText
(
titl
e
);
endTitle
(
ol
,
0
,
0
);
}
...
...
@@ -1116,3 +1141,33 @@ bool FileDef::isDocumentationFile() const
name
().
right
(
4
)
==
".txt"
||
name
().
right
(
4
)
==
".dox"
;
}
void
FileDef
::
acquireFileVersion
()
{
QCString
vercmd
=
Config_getString
(
"FILE_VERSION_FILTER"
);
if
(
!
vercmd
.
isEmpty
())
{
msg
(
"Version of %s : "
,
filepath
.
data
());
FILE
*
f
=
popen
(
vercmd
+
" "
+
filepath
,
"r"
);
if
(
!
f
)
{
err
(
"Error: could not execute %s
\n
"
,
vercmd
.
data
());
return
;
}
const
int
bufSize
=
1024
;
char
buf
[
bufSize
];
int
numRead
=
fread
(
buf
,
1
,
bufSize
,
f
);
pclose
(
f
);
if
(
numRead
>
0
)
{
fileVersion
=
QCString
(
buf
,
numRead
).
stripWhiteSpace
();
msg
(
"%s
\n
"
,
fileVersion
.
data
());
}
else
{
msg
(
"no version available
\n
"
);
}
}
}
src/filedef.h
View file @
1c51f44b
...
...
@@ -109,6 +109,9 @@ class FileDef : public Definition
/*! Returns the absolute path of this file. */
QCString
getPath
()
const
{
return
path
;
}
/*! Returns version of this file. */
QCString
getVersion
()
const
{
return
fileVersion
;
}
bool
isLinkableInProject
()
const
{
...
...
@@ -187,6 +190,13 @@ class FileDef : public Definition
bool
visited
;
protected
:
/**
* Retrieves the file version from version control system.
*/
void
acquireFileVersion
();
private
:
QDict
<
IncludeInfo
>
*
includeDict
;
...
...
@@ -195,16 +205,15 @@ class FileDef : public Definition
QList
<
IncludeInfo
>
*
includedByList
;
NamespaceSDict
*
usingDirList
;
SDict
<
Definition
>
*
usingDeclList
;
//DefineList *defineList;
QCString
path
;
QCString
filepath
;
QCString
diskname
;
QCString
filename
;
QCString
docname
;
//QCString incName;
QIntDict
<
Definition
>
*
srcDefDict
;
QIntDict
<
MemberDef
>
*
srcMemberDict
;
bool
isSource
;
QCString
fileVersion
;
PackageDef
*
package
;
DirDef
*
dir
;
...
...
src/htmldocvisitor.cpp
View file @
1c51f44b
...
...
@@ -835,24 +835,24 @@ void HtmlDocVisitor::visitPost(DocSecRefList *)
m_t
<<
"</multicol>"
<<
endl
;
}
void
HtmlDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
pushEnabled
();
m_hide
=
TRUE
;
}
}
void
HtmlDocVisitor
::
visitPost
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
popEnabled
();
}
}
//
void HtmlDocVisitor::visitPre(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
pushEnabled();
//
m_hide = TRUE;
//
}
//
}
//
//
void HtmlDocVisitor::visitPost(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
popEnabled();
//
}
//
}
void
HtmlDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/htmldocvisitor.h
View file @
1c51f44b
...
...
@@ -111,8 +111,8 @@ class HtmlDocVisitor : public DocVisitor
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
src/htmlgen.cpp
View file @
1c51f44b
...
...
@@ -46,7 +46,7 @@ static const char *defaultStyleSheet =
"BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
\n
"
" font-family: Geneva, Arial, Helvetica, sans-serif;
\n
"
"}
\n
"
"BODY {
\n
"
"BODY
,TD
{
\n
"
" font-size: 90%;
\n
"
"}
\n
"
"H1 {
\n
"
...
...
@@ -136,6 +136,11 @@ static const char *defaultStyleSheet =
//"}\n"
"DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
\n
"
"TD.md { background-color: #F4F4FB; font-weight: bold; }
\n
"
"TD.mdPrefix {
\n
"
" background-color: #F4F4FB;
\n
"
" color: #606060;
\n
"
" font-size: 80%;
\n
"
"}
\n
"
"TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; }
\n
"
"TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; }
\n
"
"DIV.groupHeader {
\n
"
...
...
@@ -1118,7 +1123,7 @@ void HtmlGenerator::startMemberDocPrefixItem()
{
DBG_HTML
(
t
<<
"<!-- startMemberDocPrefixItem -->"
<<
endl
;)
t
<<
" <tr>"
<<
endl
;
t
<<
" <td class=
\"
md
\"
colspan=
\"
4
\"
>"
<<
endl
;
t
<<
" <td class=
\"
md
Prefix
\"
colspan=
\"
4
\"
>"
<<
endl
;
}
void
HtmlGenerator
::
endMemberDocPrefixItem
()
...
...
src/latexdocvisitor.cpp
View file @
1c51f44b
...
...
@@ -841,24 +841,24 @@ void LatexDocVisitor::visitPost(DocSecRefList *)
m_t
<<
"
\\
normalsize"
<<
endl
;
}
void
LatexDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
pushEnabled
();
m_hide
=
TRUE
;
}
}
void
LatexDocVisitor
::
visitPost
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
popEnabled
();
}
}
//
void LatexDocVisitor::visitPre(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
pushEnabled();
//
m_hide = TRUE;
//
}
//
}
//
//
void LatexDocVisitor::visitPost(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
popEnabled();
//
}
//
}
void
LatexDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/latexdocvisitor.h
View file @
1c51f44b
...
...
@@ -111,8 +111,8 @@ class LatexDocVisitor : public DocVisitor
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
src/mandocvisitor.cpp
View file @
1c51f44b
...
...
@@ -748,24 +748,24 @@ void ManDocVisitor::visitPost(DocSecRefList *)
m_t
<<
".PP"
<<
endl
;
}
void
ManDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
pushEnabled
();
m_hide
=
TRUE
;
}
}
void
ManDocVisitor
::
visitPost
(
DocLanguage
*
l
)
{
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
popEnabled
();
}
}
//
void ManDocVisitor::visitPre(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
pushEnabled();
//
m_hide = TRUE;
//
}
//
}
//
//
void ManDocVisitor::visitPost(DocLanguage *l)
//
{
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
popEnabled();
//
}
//
}
void
ManDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/mandocvisitor.h
View file @
1c51f44b
...
...
@@ -111,8 +111,8 @@ class ManDocVisitor : public DocVisitor
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
src/memberdef.cpp
View file @
1c51f44b
...
...
@@ -605,12 +605,12 @@ bool MemberDef::isLinkableInProject() const
//printf("in a class but class not linkable!\n");
return
FALSE
;
// in class but class not linkable
}
if
(
!
group
&&
nspace
&&
!
nspace
->
isLinkableInProject
())
if
(
!
group
&&
nspace
&&
!
related
&&
!
nspace
->
isLinkableInProject
())
{
//printf("in a namespace but namespace not linkable!\n");
return
FALSE
;
// in namespace but namespace not linkable
}
if
(
!
group
&&
!
nspace
&&
fileDef
&&
!
fileDef
->
isLinkableInProject
())
if
(
!
group
&&
!
nspace
&&
!
related
&&
fileDef
&&
!
fileDef
->
isLinkableInProject
())
{
//printf("in a file but file not linkable!\n");
return
FALSE
;
// in file (and not in namespace) but file not linkable
...
...
@@ -679,7 +679,7 @@ ClassDef *MemberDef::getClassDefOfAnonymousType()
}
QCString
ltype
(
type
);
// strip `static' keyword from ltype
if
(
ltype
.
left
(
7
)
==
"static "
)
ltype
=
ltype
.
right
(
ltype
.
length
()
-
7
);
//
if (ltype.left(7)=="static ") ltype=ltype.right(ltype.length()-7);
// strip `friend' keyword from ltype
if
(
ltype
.
left
(
7
)
==
"friend "
)
ltype
=
ltype
.
right
(
ltype
.
length
()
-
7
);
static
QRegExp
r
(
"@[0-9]+"
);
...
...
@@ -927,7 +927,7 @@ void MemberDef::writeDeclaration(OutputList &ol,
QCString
ltype
(
type
);
if
(
mtype
==
Typedef
)
ltype
.
prepend
(
"typedef "
);
// strip `static' keyword from ltype
if
(
ltype
.
left
(
7
)
==
"static "
)
ltype
=
ltype
.
right
(
ltype
.
length
()
-
7
);
//
if (ltype.left(7)=="static ") ltype=ltype.right(ltype.length()-7);
// strip `friend' keyword from ltype
if
(
ltype
.
left
(
7
)
==
"friend "
)
ltype
=
ltype
.
right
(
ltype
.
length
()
-
7
);
static
QRegExp
r
(
"@[0-9]+"
);
...
...
src/memberdef.h
View file @
1c51f44b
...
...
@@ -213,11 +213,8 @@ class MemberDef : public Definition
// enumeration specific members
void
insertEnumField
(
MemberDef
*
md
);
void
setEnumScope
(
MemberDef
*
md
);
void
setEnumClassScope
(
ClassDef
*
cd
)
{
classDef
=
cd
;
}
MemberDef
*
getEnumScope
()
const
{
return
enumScope
;
}
//void setEnumUsed() { eUsed=TRUE; }
//bool enumUsed() const { return eUsed; }
//void setEnumDecl(OutputList &ed);
//OutputList *enumDecl() const { return enumDeclList; }
MemberList
*
enumFieldList
()
const
{
return
enumFields
;
}
void
setDocumentedEnumValues
(
bool
value
)
{
docEnumValues
=
value
;
}
bool
hasDocumentedEnumValues
()
const
{
return
docEnumValues
;
}
...
...
src/memberlist.cpp
View file @
1c51f44b
...
...
@@ -228,7 +228,6 @@ void MemberList::writePlainDeclarations(OutputList &ol,
ol
.
startMemberItem
(
0
);
ol
.
writeString
(
"enum "
);
ol
.
insertMemberAlign
();
//ol+=typeDecl; // append the enum values.
md
->
writeEnumDeclaration
(
ol
,
cd
,
nd
,
fd
,
gd
);
ol
.
endMemberItem
();
if
(
!
md
->
briefDescription
().
isEmpty
()
&&
Config_getBool
(
"BRIEF_MEMBER_DESC"
))
...
...
src/message.cpp
View file @
1c51f44b
...
...
@@ -24,66 +24,68 @@
#include "doxygen.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
//
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
static
FILE
*
warnFile
=
stderr
;
void
initWarningFormat
()
{
int
filePos
=
Config_getString
(
"WARN_FORMAT"
).
find
(
"$file"
);
int
linePos
=
Config_getString
(
"WARN_FORMAT"
).
find
(
"$line"
);
int
textPos
=
Config_getString
(
"WARN_FORMAT"
).
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
=
substitute
(
substitute
(
substitute
(
Config_getString
(
"WARN_FORMAT"
),
"$file"
,
"%s"
),
"$text"
,
"%s"
),
"$line"
,
"%d"
)
+
'\n'
;
//
int filePos = Config_getString("WARN_FORMAT").find("$file");
//
int linePos = Config_getString("WARN_FORMAT").find("$line");
//
int textPos = Config_getString("WARN_FORMAT").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 =
//
substitute(
//
substitute(
//
substitute(
//
Config_getString("WARN_FORMAT"),
//
"$file","%s"
//
),
//
"$text","%s"
//
),
//
"$line","%d"
//
)+'\n';
// replace(QRegExp("\\$file"),"%s").
// replace(QRegExp("\\$text"),"%s").
// replace(QRegExp("\\$line"),"%d")+
// '\n';
outputFormat
=
Config_getString
(
"WARN_FORMAT"
);
if
(
!
Config_getString
(
"WARN_LOGFILE"
).
isEmpty
())
{
warnFile
=
fopen
(
Config_getString
(
"WARN_LOGFILE"
),
"w"
);
...
...
@@ -115,18 +117,48 @@ static void do_warn(const char *tag, const char *file, int line, const char *fmt
if
(
!
Config_getBool
(
tag
))
return
;
// warning type disabled
char
text
[
40960
];
vsprintf
(
text
,
fmt
,
args
);
if
(
file
==
0
)
file
=
"<unknown>"
;
switch
(
warnFormatOrder
)
QCString
fileSubst
=
file
==
0
?
"<unknown>"
:
file
;
QCString
lineSubst
;
lineSubst
.
setNum
(
line
);
QCString
textSubst
=
text
;
QCString
versionSubst
;
if
(
file
)
// get version from file name
{
case
1
:
fprintf
(
warnFile
,
outputFormat
,
file
,
line
,
text
);
break
;
case
2
:
fprintf
(
warnFile
,
outputFormat
,
text
,
line
,
file
);
break
;
case
3
:
fprintf
(
warnFile
,
outputFormat
,
line
,
text
,
file
);
break
;
case
4
:
fprintf
(
warnFile
,
outputFormat
,
file
,
text
,
line
);
break
;
case
5
:
fprintf
(
warnFile
,
outputFormat
,
text
,
file
,
line
);
break
;
case
6
:
fprintf
(
warnFile
,
outputFormat
,
line
,
file
,
text
);
break
;
default:
printf
(
"Error: warning format has not been initialized!
\n
"
);
bool
ambig
;
FileDef
*
fd
=
findFileDef
(
Doxygen
::
inputNameDict
,
file
,
ambig
);
if
(
fd
)
{
versionSubst
=
fd
->
getVersion
();
}
}
// substitute markers by actual values
QCString
msgText
=
substitute
(
substitute
(
substitute
(
substitute
(
outputFormat
,
"$file"
,
fileSubst
),
"$text"
,
textSubst
),
"$line"
,
lineSubst
),
"$version"
,
versionSubst
)
+
'\n'
;
// print resulting message
fprintf
(
warnFile
,
msgText
);
// switch(warnFormatOrder)
// {
// case 1: fprintf(warnFile,outputFormat,file,line,text); break;
// case 2: fprintf(warnFile,outputFormat,text,line,file); break;
// case 3: fprintf(warnFile,outputFormat,line,text,file); break;
// case 4: fprintf(warnFile,outputFormat,file,text,line); break;
// case 5: fprintf(warnFile,outputFormat,text,file,line); break;
// case 6: fprintf(warnFile,outputFormat,line,file,text); break;
// default:
// printf("Error: warning format has not been initialized!\n");
// }
}
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...)
...
...
src/perlmodgen.cpp
View file @
1c51f44b
...
...
@@ -367,8 +367,8 @@ public:
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
@@ -1126,16 +1126,16 @@ void PerlModDocVisitor::visitPost(DocSecRefList *)
#endif
}
void
PerlModDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
openItem
(
"language"
);
m_output
.
addFieldQuotedString
(
"id"
,
l
->
id
());
}
void
PerlModDocVisitor
::
visitPost
(
DocLanguage
*
)
{
closeItem
();
}
//
void PerlModDocVisitor::visitPre(DocLanguage *l)
//
{
//
openItem("language");
//
m_output.addFieldQuotedString("id", l->id());
//
}
//
//
void PerlModDocVisitor::visitPost(DocLanguage *)
//
{
//
closeItem();
//
}
void
PerlModDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/printdocvisitor.h
View file @
1c51f44b
...
...
@@ -534,16 +534,16 @@ class PrintDocVisitor : public DocVisitor
indent_post
();
printf
(
"</secreflist>
\n
"
);
}
void
visitPre
(
DocLanguage
*
l
)
{
indent_pre
();
printf
(
"<language id=%s>
\n
"
,
l
->
id
().
data
());
}
void
visitPost
(
DocLanguage
*
)
{
indent_post
();
printf
(
"</language>
\n
"
);
}
//
void visitPre(DocLanguage *l)
//
{
//
indent_pre();
//
printf("<language id=%s>\n",l->id().data());
//
}
//
void visitPost(DocLanguage *)
//
{
//
indent_post();
//
printf("</language>\n");
//
}
void
visitPre
(
DocParamList
*
pl
)
{
indent_pre
();
...
...
src/rtfdocvisitor.cpp
View file @
1c51f44b
...
...
@@ -1088,26 +1088,26 @@ void RTFDocVisitor::visitPost(DocSecRefList *)
m_lastIsPara
=
TRUE
;
}
void
RTFDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
DBG_RTF
(
"{
\\
comment RTFDocVisitor::visitPre(DocLanguage)}
\n
"
);
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
pushEnabled
();
m_hide
=
TRUE
;
}
}
void
RTFDocVisitor
::
visitPost
(
DocLanguage
*
l
)
{
DBG_RTF
(
"{
\\
comment RTFDocVisitor::visitPost(DocLanguage)}
\n
"
);
QString
langId
=
Config_getEnum
(
"OUTPUT_LANGUAGE"
);
if
(
l
->
id
().
lower
()
!=
langId
.
lower
())
{
popEnabled
();
}
}
//
void RTFDocVisitor::visitPre(DocLanguage *l)
//
{
//
DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocLanguage)}\n");
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
pushEnabled();
//
m_hide = TRUE;
//
}
//
}
//
//
void RTFDocVisitor::visitPost(DocLanguage *l)
//
{
//
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocLanguage)}\n");
//
QString langId = Config_getEnum("OUTPUT_LANGUAGE");
//
if (l->id().lower()!=langId.lower())
//
{
//
popEnabled();
//
}
//
}
void
RTFDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/rtfdocvisitor.h
View file @
1c51f44b
...
...
@@ -111,8 +111,8 @@ class RTFDocVisitor : public DocVisitor
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
src/scanner.l
View file @
1c51f44b
...
...
@@ -84,6 +84,7 @@ static int lastPreLineCtrlContext;
static int lastSkipVerbStringContext;
static int lastCommentInArgContext;
static int lastFileDocContext;
static int lastSectionContext;
static int nextDefContext;
static int overloadContext;
static Protection protection;
...
...
@@ -672,6 +673,7 @@ DL [dD][lL]
TITLE [tT][iI][tT][lL][eE]
CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
IDLATTR ("["[^\]]*"]"){BN}*
%option noyywrap
...
...
@@ -828,6 +830,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
%x ObjCProtocolList
%x QtPropType
%x QtPropName
%x QtPropAttr
%x QtPropRead
%x QtPropWrite
...
...
@@ -1189,7 +1192,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
<PackageName>";" {
BEGIN(FindMembers);
}
<FindMembers>{B}*"static"{BN}+ {
//
current->type += " static ";
<FindMembers>{B}*"static"{BN}+ { current->type += " static ";
current->stat = TRUE;
lineCount();
}
...
...
@@ -1410,8 +1413,8 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
if (yytext[yyleng-1]=='{') unput('{');
BEGIN( CompoundName ) ;
}
<FindMembers>{B}*(("typedef"{BN}+)?)
"enum{" |
<FindMembers>{B}*(("typedef"{BN}+)?)
"enum"{BN}+ {
<FindMembers>{B}*(("typedef"{BN}+)?)
{IDLATTR}?"enum{" |
<FindMembers>{B}*(("typedef"{BN}+)?)
{IDLATTR}?"enum"{BN}+ { // for IDL: typedef [something] enum
isTypedef=((QCString)yytext).find("typedef")!=-1;
current->section = Entry::ENUM_SEC ;
addType( current ) ;
...
...
@@ -1649,28 +1652,41 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
current->mtype = mtype = Property;
BEGIN(QtPropType);
}
<QtPropType>"(" { // start of property arguments
}
<QtPropAttr>")" { // end of property arguments
unput(';');
BEGIN(FindMembers);
}
<QtPropType>{ID} {
current->type=yytext;
BEGIN(QtPropName);
}
<QtPropName>{ID} {
current->name=yytext;
BEGIN(QtProp
Read
);
BEGIN(QtProp
Attr
);
}
<QtProp
Read
>"READ" {
<QtProp
Attr
>"READ" {
current->memSpec |= Entry::Readable;
BEGIN(QtPropRead);
}
<QtPropAttr>"WRITE" {
current->memSpec |= Entry::Writable;
BEGIN(QtPropWrite);
}
<QtPropAttr>"RESET"{B}+{ID} { // reset method => not supported yet
}
<QtPropAttr>"SCRIPTABLE"{B}+{ID} { // scriptable property => not supported yet
}
<QtPropAttr>"DESIGNABLE"{B}+{ID} { // designable property => not supported yet
}
<QtPropRead>{ID} {
current->read = yytext;
BEGIN(QtPropWrite);
}
<QtPropWrite>"WRITE" {
current->memSpec |= Entry::Writable;
BEGIN(QtPropAttr);
}
<QtPropWrite>{ID} {
current->write = yytext;
unput(';');
BEGIN(FindMembers);
BEGIN(QtPropAttr);
}
<FindMembers>"friend"{BN}+("class"|"union"|"struct"){BN}+ {
current->name=yytext;
...
...
@@ -4745,21 +4761,25 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
<ClassDoc,PageDoc,Doc,JavaDoc>{CMD}"section"{B}+ {
//sectionType=SectionInfo::Section;
current->doc+=yytext;
lastSectionContext=YY_START;
BEGIN(SectionLabel);
}
<ClassDoc,PageDoc,Doc,JavaDoc>{CMD}"subsection"{B}+ {
//sectionType=SectionInfo::Subsection;
current->doc+=yytext;
lastSectionContext=YY_START;
BEGIN(SectionLabel);
}
<ClassDoc,PageDoc,Doc,JavaDoc>{CMD}"subsubsection"{B}+ {
//sectionType=SectionInfo::Subsubsection;
current->doc+=yytext;
lastSectionContext=YY_START;
BEGIN(SectionLabel);
}
<ClassDoc,PageDoc,Doc,JavaDoc>{CMD}"paragraph"{B}+ {
//sectionType=SectionInfo::Paragraph;
current->doc+=yytext;
lastSectionContext=YY_START;
BEGIN(SectionLabel);
}
<GroupHeader>. { memberGroupHeader+=*yytext; }
...
...
@@ -5011,7 +5031,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
current->anchors->append(si);
Doxygen::sectionDict.insert(yytext,si);
current->doc+=yytext;
BEGIN(
PageDoc
);
BEGIN(
lastSectionContext
);
}
<SectionTitle>[^\n*]* {
sectionTitle+=yytext;
...
...
@@ -5356,7 +5376,8 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
);
}
<DocBaseClass>\n { yyLineNr++; BEGIN( ClassDoc ); }
<ClassDocBrief>{BS}({BL}|"\\n\\n") {
<ClassDocBrief>{BS}({BL}|"\\n\\n") |
<ClassDocBrief>("\\_linebr \\_linebr") {
//if (!current->doc.isEmpty()) current->doc+=" <p>";
if (lastBriefContext==TodoParam ||
lastBriefContext==TestParam ||
...
...
@@ -5444,6 +5465,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
<ClassDocBrief>{BS}{CMD}("brief"|"short"){BN}+ {
//lastBriefContext=YY_START;
}
<ClassDocBrief>{ID} { current->brief += yytext; }
<ClassDocBrief>. { current->brief += *yytext; }
<ClassDocDefine>{ID}/"(" {
current->name = yytext;
...
...
@@ -5577,6 +5599,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
yyLineNr++;
BEGIN(AfterDoc);
}
<AfterDocLine>{ID} { current->brief+=yytext; }
<AfterDocLine>. { current->brief+=yytext; }
<AfterDocBrief>{BS}({BL}|"\\n\\n") {
current->brief=current->brief.stripWhiteSpace();
...
...
@@ -5707,7 +5730,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;]
}
<Doc,JavaDoc,LineDoc,ClassDocBrief,AfterDocBrief,AfterDocLine,CopyArgCommentLine,ClassDoc,PageDoc,AfterDoc,CopyArgComment,DocInternal,DocInternalLine>"\\_linebr " {
// used to compensate for misalignments due to \n's inside ALIASES
current->doc += '\n';
current->doc += '\n';
}
<Doc,JavaDoc,ClassDoc,PageDoc,ReadFormulaShort,ReadFormulaLong,AfterDoc>^{B}*(("//"{B}*)?)"*"+[ \t]*"-"("#")?{B}+ {
current->doc += yytext;
...
...
src/xmldocvisitor.cpp
View file @
1c51f44b
...
...
@@ -711,17 +711,17 @@ void XmlDocVisitor::visitPost(DocSecRefList *)
m_t
<<
"</toclist>"
<<
endl
;
}
void
XmlDocVisitor
::
visitPre
(
DocLanguage
*
l
)
{
if
(
m_hide
)
return
;
m_t
<<
"<language langid=
\"
"
<<
l
->
id
()
<<
"
\"
>"
;
}
void
XmlDocVisitor
::
visitPost
(
DocLanguage
*
)
{
if
(
m_hide
)
return
;
m_t
<<
"</language>"
<<
endl
;
}
//
void XmlDocVisitor::visitPre(DocLanguage *l)
//
{
//
if (m_hide) return;
//
m_t << "<language langid=\"" << l->id() << "\">";
//
}
//
//
void XmlDocVisitor::visitPost(DocLanguage *)
//
{
//
if (m_hide) return;
//
m_t << "</language>" << endl;
//
}
void
XmlDocVisitor
::
visitPre
(
DocParamSect
*
s
)
{
...
...
src/xmldocvisitor.h
View file @
1c51f44b
...
...
@@ -111,8 +111,8 @@ class XmlDocVisitor : public DocVisitor
void
visitPost
(
DocSecRefItem
*
);
void
visitPre
(
DocSecRefList
*
);
void
visitPost
(
DocSecRefList
*
);
void
visitPre
(
DocLanguage
*
);
void
visitPost
(
DocLanguage
*
);
//
void visitPre(DocLanguage *);
//
void visitPost(DocLanguage *);
void
visitPre
(
DocParamSect
*
);
void
visitPost
(
DocParamSect
*
);
void
visitPre
(
DocParamList
*
);
...
...
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