Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
366b4c2e
Commit
366b4c2e
authored
Aug 05, 2010
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look at the virtual methods.
parent
67227437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+16
-1
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
366b4c2e
...
...
@@ -345,7 +345,22 @@ struct CanonicalSymbol
{
const
QList
<
LookupItem
>
results
=
typeOfExpression
(
code
,
scope
,
TypeOfExpression
::
Preprocess
);
for
(
int
i
=
0
;
i
<
results
.
size
();
++
i
)
{
// ### TODO virtual methods and classes.
for
(
int
i
=
results
.
size
()
-
1
;
i
!=
-
1
;
--
i
)
{
const
LookupItem
&
r
=
results
.
at
(
i
);
if
(
!
r
.
declaration
())
break
;
else
if
(
!
r
.
declaration
()
->
scope
())
break
;
else
if
(
!
r
.
declaration
()
->
scope
()
->
isClassScope
())
break
;
if
(
Function
*
funTy
=
r
.
declaration
()
->
type
()
->
asFunctionType
())
if
(
funTy
->
isVirtual
())
return
r
.
declaration
();
}
for
(
int
i
=
0
;
i
<
results
.
size
();
++
i
)
{
const
LookupItem
&
r
=
results
.
at
(
i
);
if
(
r
.
declaration
())
...
...
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