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
c6e41226
Commit
c6e41226
authored
Nov 17, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 740218 - Full scope needed when making link inside cross-referenced section
parent
9f477b87
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
54 additions
and
11 deletions
+54
-11
classdef.cpp
src/classdef.cpp
+2
-1
cmdmapper.cpp
src/cmdmapper.cpp
+1
-0
cmdmapper.h
src/cmdmapper.h
+2
-1
docparser.cpp
src/docparser.cpp
+11
-0
doctokenizer.h
src/doctokenizer.h
+1
-0
doctokenizer.l
src/doctokenizer.l
+13
-0
doxygen.cpp
src/doxygen.cpp
+3
-3
filedef.cpp
src/filedef.cpp
+1
-0
groupdef.cpp
src/groupdef.cpp
+1
-0
memberdef.cpp
src/memberdef.cpp
+1
-1
membergroup.cpp
src/membergroup.cpp
+1
-1
namespacedef.cpp
src/namespacedef.cpp
+2
-1
reflist.cpp
src/reflist.cpp
+8
-0
reflist.h
src/reflist.h
+4
-1
util.cpp
src/util.cpp
+2
-1
util.h
src/util.h
+1
-1
No files found.
src/classdef.cpp
View file @
c6e41226
...
@@ -3879,7 +3879,8 @@ void ClassDef::addListReferences()
...
@@ -3879,7 +3879,8 @@ void ClassDef::addListReferences()
:
theTranslator
->
trClass
(
TRUE
,
TRUE
),
:
theTranslator
->
trClass
(
TRUE
,
TRUE
),
getOutputFileBase
(),
getOutputFileBase
(),
displayName
(),
displayName
(),
0
0
,
this
);
);
}
}
if
(
m_impl
->
memberGroupSDict
)
if
(
m_impl
->
memberGroupSDict
)
...
...
src/cmdmapper.cpp
View file @
c6e41226
...
@@ -140,6 +140,7 @@ CommandMap cmdMap[] =
...
@@ -140,6 +140,7 @@ CommandMap cmdMap[] =
{
"diafile"
,
CMD_DIAFILE
},
{
"diafile"
,
CMD_DIAFILE
},
{
"--"
,
CMD_NDASH
},
{
"--"
,
CMD_NDASH
},
{
"---"
,
CMD_MDASH
},
{
"---"
,
CMD_MDASH
},
{
"_setscope"
,
CMD_SETSCOPE
},
{
0
,
0
},
{
0
,
0
},
};
};
...
...
src/cmdmapper.h
View file @
c6e41226
...
@@ -129,7 +129,8 @@ enum CommandType
...
@@ -129,7 +129,8 @@ enum CommandType
CMD_NDASH
=
99
,
CMD_NDASH
=
99
,
CMD_MDASH
=
100
,
CMD_MDASH
=
100
,
CMD_STARTUML
=
101
,
CMD_STARTUML
=
101
,
CMD_ENDUML
=
102
CMD_ENDUML
=
102
,
CMD_SETSCOPE
=
103
};
};
enum
HtmlTagType
enum
HtmlTagType
...
...
src/docparser.cpp
View file @
c6e41226
...
@@ -1410,6 +1410,17 @@ reparsetoken:
...
@@ -1410,6 +1410,17 @@ reparsetoken:
doctokenizerYYsetStatePara
();
doctokenizerYYsetStatePara
();
}
}
break
;
break
;
case
CMD_SETSCOPE
:
{
QCString
scope
;
doctokenizerYYsetStateSetScope
();
doctokenizerYYlex
();
scope
=
g_token
->
name
;
g_context
=
scope
;
//printf("Found scope='%s'\n",scope.data());
doctokenizerYYsetStatePara
();
}
break
;
default
:
default
:
return
FALSE
;
return
FALSE
;
}
}
...
...
src/doctokenizer.h
View file @
c6e41226
...
@@ -161,5 +161,6 @@ void doctokenizerYYsetStateSnippet();
...
@@ -161,5 +161,6 @@ void doctokenizerYYsetStateSnippet();
void
doctokenizerYYstartAutoList
();
void
doctokenizerYYstartAutoList
();
void
doctokenizerYYendAutoList
();
void
doctokenizerYYendAutoList
();
void
doctokenizerYYsetStatePlantUML
();
void
doctokenizerYYsetStatePlantUML
();
void
doctokenizerYYsetStateSetScope
();
#endif
#endif
src/doctokenizer.l
View file @
c6e41226
...
@@ -436,6 +436,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
...
@@ -436,6 +436,7 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
%x St_SkipTitle
%x St_SkipTitle
%x St_Anchor
%x St_Anchor
%x St_Snippet
%x St_Snippet
%x St_SetScope
%x St_Sections
%x St_Sections
%s St_SecLabel1
%s St_SecLabel1
...
@@ -1012,6 +1013,13 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
...
@@ -1012,6 +1013,13 @@ REFWORD {LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
<St_IntRef>{BLANK}+"\"" {
<St_IntRef>{BLANK}+"\"" {
BEGIN(St_Ref2);
BEGIN(St_Ref2);
}
}
<St_SetScope>{SCOPEMASK}{BLANK} {
g_token->name = yytext;
g_token->name = g_token->name.stripWhiteSpace();
return TK_WORD;
}
<St_SetScope>{BLANK} {
}
<St_Ref2>"&"{ID}";" { /* symbol */
<St_Ref2>"&"{ID}";" { /* symbol */
g_token->name = yytext;
g_token->name = yytext;
return TK_SYMBOL;
return TK_SYMBOL;
...
@@ -1411,6 +1419,11 @@ void doctokenizerYYsetStateSnippet()
...
@@ -1411,6 +1419,11 @@ void doctokenizerYYsetStateSnippet()
BEGIN(St_Snippet);
BEGIN(St_Snippet);
}
}
void doctokenizerYYsetStateSetScope()
{
BEGIN(St_SetScope);
}
void doctokenizerYYcleanup()
void doctokenizerYYcleanup()
{
{
yy_delete_buffer( YY_CURRENT_BUFFER );
yy_delete_buffer( YY_CURRENT_BUFFER );
...
...
src/doxygen.cpp
View file @
c6e41226
...
@@ -5221,7 +5221,7 @@ static void addListReferences()
...
@@ -5221,7 +5221,7 @@ static void addListReferences()
addRefItem
(
xrefItems
,
addRefItem
(
xrefItems
,
name
,
name
,
theTranslator
->
trPage
(
TRUE
,
TRUE
),
theTranslator
->
trPage
(
TRUE
,
TRUE
),
name
,
pd
->
title
(),
0
);
name
,
pd
->
title
(),
0
,
0
);
}
}
}
}
...
@@ -5238,7 +5238,7 @@ static void addListReferences()
...
@@ -5238,7 +5238,7 @@ static void addListReferences()
addRefItem
(
xrefItems
,
addRefItem
(
xrefItems
,
name
,
name
,
theTranslator
->
trDir
(
TRUE
,
TRUE
),
theTranslator
->
trDir
(
TRUE
,
TRUE
),
name
,
dd
->
displayName
(),
0
);
name
,
dd
->
displayName
(),
0
,
0
);
}
}
}
}
...
@@ -8629,7 +8629,7 @@ static void buildPageList(EntryNav *rootNav)
...
@@ -8629,7 +8629,7 @@ static void buildPageList(EntryNav *rootNav)
"page"
,
"page"
,
name
,
name
,
title
,
title
,
0
0
,
0
);
);
rootNav
->
releaseEntry
();
rootNav
->
releaseEntry
();
...
...
src/filedef.cpp
View file @
c6e41226
...
@@ -1409,6 +1409,7 @@ void FileDef::addListReferences()
...
@@ -1409,6 +1409,7 @@ void FileDef::addListReferences()
getOutputFileBase
(),
getOutputFileBase
(),
theTranslator
->
trFile
(
TRUE
,
TRUE
),
theTranslator
->
trFile
(
TRUE
,
TRUE
),
getOutputFileBase
(),
name
(),
getOutputFileBase
(),
name
(),
0
,
0
0
);
);
}
}
...
...
src/groupdef.cpp
View file @
c6e41226
...
@@ -1534,6 +1534,7 @@ void GroupDef::addListReferences()
...
@@ -1534,6 +1534,7 @@ void GroupDef::addListReferences()
getOutputFileBase
(),
getOutputFileBase
(),
theTranslator
->
trGroup
(
TRUE
,
TRUE
),
theTranslator
->
trGroup
(
TRUE
,
TRUE
),
getOutputFileBase
(),
name
(),
getOutputFileBase
(),
name
(),
0
,
0
0
);
);
}
}
...
...
src/memberdef.cpp
View file @
c6e41226
...
@@ -3507,7 +3507,7 @@ void MemberDef::addListReference(Definition *)
...
@@ -3507,7 +3507,7 @@ void MemberDef::addListReference(Definition *)
addRefItem
(
xrefItems
,
addRefItem
(
xrefItems
,
qualifiedName
()
+
argsString
(),
// argsString is needed for overloaded functions (see bug 609624)
qualifiedName
()
+
argsString
(),
// argsString is needed for overloaded functions (see bug 609624)
memLabel
,
memLabel
,
getOutputFileBase
()
+
"#"
+
anchor
(),
memName
,
memArgs
);
getOutputFileBase
()
+
"#"
+
anchor
(),
memName
,
memArgs
,
pd
);
}
}
}
}
...
...
src/membergroup.cpp
View file @
c6e41226
...
@@ -326,7 +326,7 @@ void MemberGroup::addListReferences(Definition *def)
...
@@ -326,7 +326,7 @@ void MemberGroup::addListReferences(Definition *def)
name
,
name
,
theTranslator
->
trGroup
(
TRUE
,
TRUE
),
theTranslator
->
trGroup
(
TRUE
,
TRUE
),
name
,
name
,
grpHeader
,
0
);
grpHeader
,
0
,
def
);
}
}
}
}
...
...
src/namespacedef.cpp
View file @
c6e41226
...
@@ -832,7 +832,8 @@ void NamespaceDef::addListReferences()
...
@@ -832,7 +832,8 @@ void NamespaceDef::addListReferences()
theTranslator
->
trModule
(
TRUE
,
TRUE
)
:
theTranslator
->
trModule
(
TRUE
,
TRUE
)
:
theTranslator
->
trNamespace
(
TRUE
,
TRUE
),
theTranslator
->
trNamespace
(
TRUE
,
TRUE
),
getOutputFileBase
(),
displayName
(),
getOutputFileBase
(),
displayName
(),
0
0
,
this
);
);
}
}
MemberGroupSDict
::
Iterator
mgli
(
*
memberGroupSDict
);
MemberGroupSDict
::
Iterator
mgli
(
*
memberGroupSDict
);
...
...
src/reflist.cpp
View file @
c6e41226
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include "reflist.h"
#include "reflist.h"
#include "util.h"
#include "util.h"
#include "ftextstream.h"
#include "ftextstream.h"
#include "definition.h"
/*! Create a list of items that are cross referenced with documentation blocks
/*! Create a list of items that are cross referenced with documentation blocks
* @param listName String representing the name of the list.
* @param listName String representing the name of the list.
...
@@ -144,6 +145,12 @@ void RefList::generatePage()
...
@@ -144,6 +145,12 @@ void RefList::generatePage()
doc
+=
"
\\
anchor "
;
doc
+=
"
\\
anchor "
;
doc
+=
item
->
listAnchor
;
doc
+=
item
->
listAnchor
;
doc
+=
"
\n
"
;
doc
+=
"
\n
"
;
if
(
item
->
scope
)
{
doc
+=
"
\\
_setscope "
;
doc
+=
item
->
scope
->
name
();
doc
+=
" "
;
}
doc
+=
item
->
prefix
;
doc
+=
item
->
prefix
;
doc
+=
"
\\
_internalref "
;
doc
+=
"
\\
_internalref "
;
doc
+=
item
->
name
;
doc
+=
item
->
name
;
...
@@ -166,6 +173,7 @@ void RefList::generatePage()
...
@@ -166,6 +173,7 @@ void RefList::generatePage()
doc
+=
"</dd>"
;
doc
+=
"</dd>"
;
}
}
doc
+=
"</dl>
\n
"
;
doc
+=
"</dl>
\n
"
;
//printf("generatePage('%s')\n",doc.data());
addRelatedPage
(
m_listName
,
m_pageTitle
,
doc
,
0
,
m_listName
,
1
,
0
,
0
,
0
);
addRelatedPage
(
m_listName
,
m_pageTitle
,
doc
,
0
,
m_listName
,
1
,
0
,
0
,
0
);
}
}
src/reflist.h
View file @
c6e41226
...
@@ -23,14 +23,17 @@
...
@@ -23,14 +23,17 @@
#include <qlist.h>
#include <qlist.h>
#include "sortdict.h"
#include "sortdict.h"
class
Definition
;
/** This struct represents an item in the list of references. */
/** This struct represents an item in the list of references. */
struct
RefItem
struct
RefItem
{
{
RefItem
()
/*: written(FALSE)*/
{}
RefItem
()
:
scope
(
0
)
{}
QCString
text
;
//!< text of the item.
QCString
text
;
//!< text of the item.
QCString
listAnchor
;
//!< anchor in the list
QCString
listAnchor
;
//!< anchor in the list
QCString
prefix
;
//!< type prefix for the name
QCString
prefix
;
//!< type prefix for the name
Definition
*
scope
;
//!< scope to use for references.
QCString
name
;
//!< name of the entity containing the reference
QCString
name
;
//!< name of the entity containing the reference
QCString
title
;
//!< display name of the entity
QCString
title
;
//!< display name of the entity
QCString
args
;
//!< optional arguments for the entity (if function)
QCString
args
;
//!< optional arguments for the entity (if function)
...
...
src/util.cpp
View file @
c6e41226
...
@@ -6364,7 +6364,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
...
@@ -6364,7 +6364,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
void
addRefItem
(
const
QList
<
ListItemInfo
>
*
sli
,
void
addRefItem
(
const
QList
<
ListItemInfo
>
*
sli
,
const
char
*
key
,
const
char
*
key
,
const
char
*
prefix
,
const
char
*
name
,
const
char
*
title
,
const
char
*
args
)
const
char
*
prefix
,
const
char
*
name
,
const
char
*
title
,
const
char
*
args
,
Definition
*
scope
)
{
{
//printf("addRefItem(sli=%p,key=%s,prefix=%s,name=%s,title=%s,args=%s)\n",sli,key,prefix,name,title,args);
//printf("addRefItem(sli=%p,key=%s,prefix=%s,name=%s,title=%s,args=%s)\n",sli,key,prefix,name,title,args);
if
(
sli
&&
key
&&
key
[
0
]
!=
'@'
)
// check for @ to skip anonymous stuff (see bug427012)
if
(
sli
&&
key
&&
key
[
0
]
!=
'@'
)
// check for @ to skip anonymous stuff (see bug427012)
...
@@ -6389,6 +6389,7 @@ void addRefItem(const QList<ListItemInfo> *sli,
...
@@ -6389,6 +6389,7 @@ void addRefItem(const QList<ListItemInfo> *sli,
ASSERT
(
item
!=
0
);
ASSERT
(
item
!=
0
);
item
->
prefix
=
prefix
;
item
->
prefix
=
prefix
;
item
->
scope
=
scope
;
item
->
name
=
name
;
item
->
name
=
name
;
item
->
title
=
title
;
item
->
title
=
title
;
item
->
args
=
args
;
item
->
args
=
args
;
...
...
src/util.h
View file @
c6e41226
...
@@ -316,7 +316,7 @@ int filterCRLF(char *buf,int len);
...
@@ -316,7 +316,7 @@ int filterCRLF(char *buf,int len);
void
addRefItem
(
const
QList
<
ListItemInfo
>
*
sli
,
const
char
*
prefix
,
void
addRefItem
(
const
QList
<
ListItemInfo
>
*
sli
,
const
char
*
prefix
,
const
char
*
key
,
const
char
*
key
,
const
char
*
name
,
const
char
*
title
,
const
char
*
args
);
const
char
*
name
,
const
char
*
title
,
const
char
*
args
,
Definition
*
scope
);
PageDef
*
addRelatedPage
(
const
char
*
name
,
const
QCString
&
ptitle
,
PageDef
*
addRelatedPage
(
const
char
*
name
,
const
QCString
&
ptitle
,
const
QCString
&
doc
,
QList
<
SectionInfo
>
*
anchors
,
const
QCString
&
doc
,
QList
<
SectionInfo
>
*
anchors
,
...
...
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