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
40153a83
Commit
40153a83
authored
Sep 10, 2013
by
Adrian Negreanu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consider currentFile when searching for global symbols
Signed-off-by:
Adrian Negreanu
<
adrian.m.negreanu@intel.com
>
parent
1e373422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
util.cpp
src/util.cpp
+14
-1
No files found.
src/util.cpp
View file @
40153a83
...
...
@@ -4307,7 +4307,20 @@ bool getDefs(const QCString &scName,
//printf("found %d candidate members\n",members.count());
if
(
members
.
count
()
>
0
)
// at least one match
{
md
=
members
.
last
();
if
(
currentFile
)
{
//printf("multiple results; pick one from file:%s\n", currentFile->name().data());
md
=
members
.
first
();
while
(
md
)
{
if
(
md
->
getFileDef
()
->
name
()
==
currentFile
->
name
())
break
;
md
=
members
.
next
();
}
if
(
!
md
)
md
=
members
.
last
();
}
else
{
md
=
members
.
last
();
}
}
if
(
md
&&
(
md
->
getEnumScope
()
==
0
||
!
md
->
getEnumScope
()
->
isStrong
()))
// found a matching global member, that is not a scoped enum value (or uniquely matches)
...
...
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