Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1f3ce810
Commit
1f3ce810
authored
May 12, 2010
by
Roberto Raggi
Browse files
Check the member access operator before trying to resolve the base expression.
parent
31b632d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/ResolveExpression.cpp
View file @
1f3ce810
...
...
@@ -609,17 +609,18 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
return
retBinding
;
}
}
}
if
(
replacedDotOperator
&&
accessOp
==
T_DOT
)
{
if
(
PointerType
*
ptrTy
=
ty
->
asPointerType
())
{
ty
=
ptrTy
->
elementType
();
*
replacedDotOperator
=
true
;
}
else
if
(
accessOp
==
T_DOT
)
{
if
(
replacedDotOperator
)
{
if
(
PointerType
*
ptrTy
=
ty
->
asPointerType
())
{
// replace . with ->
ty
=
ptrTy
->
elementType
();
*
replacedDotOperator
=
true
;
}
}
}
if
(
ClassOrNamespace
*
binding
=
findClass
(
ty
,
scope
))
return
binding
;
if
(
ClassOrNamespace
*
binding
=
findClass
(
ty
,
scope
))
return
binding
;
}
}
return
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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