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
2d35b9a7
Commit
2d35b9a7
authored
Jun 28, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added lists for indices to template context
parent
b850eb45
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
296 additions
and
50 deletions
+296
-50
context.cpp
src/context.cpp
+265
-49
memberdef.cpp
src/memberdef.cpp
+24
-0
memberdef.h
src/memberdef.h
+6
-0
template.cpp
src/template.cpp
+1
-1
No files found.
src/context.cpp
View file @
2d35b9a7
This diff is collapsed.
Click to expand it.
src/memberdef.cpp
View file @
2d35b9a7
...
...
@@ -5080,4 +5080,28 @@ const ArgumentList *MemberDef::typeConstraints() const
return
m_impl
->
typeConstraints
;
}
bool
MemberDef
::
isFriendToHide
()
const
{
static
bool
hideFriendCompounds
=
Config_getBool
(
"HIDE_FRIEND_COMPOUNDS"
);
bool
isFriendToHide
=
hideFriendCompounds
&&
(
m_impl
->
type
==
"friend class"
||
m_impl
->
type
==
"friend struct"
||
m_impl
->
type
==
"friend union"
);
return
isFriendToHide
;
}
bool
MemberDef
::
isNotFriend
()
const
{
return
!
(
isFriend
()
&&
isFriendToHide
());
}
bool
MemberDef
::
isFunctionOrSignalSlot
()
const
{
return
isFunction
()
||
isSlot
()
||
isSignal
();
}
bool
MemberDef
::
isRelatedOrFriend
()
const
{
return
isRelated
()
||
isForeign
()
||
isFriend
()
&&
!
isFriendToHide
();
}
src/memberdef.h
View file @
2d35b9a7
...
...
@@ -177,6 +177,12 @@ class MemberDef : public Definition
bool
showInCallGraph
()
const
;
bool
isStrongEnumValue
()
const
;
// derived getters
bool
isFriendToHide
()
const
;
bool
isNotFriend
()
const
;
bool
isFunctionOrSignalSlot
()
const
;
bool
isRelatedOrFriend
()
const
;
// output info
bool
isLinkableInProject
()
const
;
bool
isLinkable
()
const
;
...
...
src/template.cpp
View file @
2d35b9a7
...
...
@@ -1146,7 +1146,7 @@ class FilterAlphaIndex
indexList
=
TemplateList
::
alloc
();
indexNode
->
set
(
"letter"
,
keyToLetter
(
elem
->
key
));
indexNode
->
set
(
"label"
,
keyToLabel
(
elem
->
key
));
indexNode
->
set
(
"
classe
s"
,
indexList
);
indexNode
->
set
(
"
item
s"
,
indexList
);
result
->
append
(
indexNode
);
letter
=
elem
->
key
;
}
...
...
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