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
Tobias Hunger
qt-creator
Commits
2ad794c5
Commit
2ad794c5
authored
Jun 18, 2010
by
Erik Verbruggen
Browse files
Fixed type resolving for ObjC ptr receiver types in objc_msg_send expressions.
parent
55f9645c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/cplusplus/ResolveExpression.cpp
View file @
2ad794c5
...
...
@@ -662,7 +662,7 @@ bool ResolveExpression::visit(ObjCMessageExpressionAST *ast)
// [NSObject description];
binding
=
_context
.
lookupType
(
clazz
);
}
else
if
(
PointerType
*
ptrTy
=
ty
->
asPointerType
())
{
if
(
NamedType
*
namedTy
=
ptrTy
->
asNamedType
())
{
if
(
NamedType
*
namedTy
=
ptrTy
->
elementType
()
->
asNamedType
())
{
// dynamic access, e.g.:
// NSObject *obj = ...; [obj release];
binding
=
_context
.
lookupType
(
namedTy
->
name
(),
result
.
scope
());
...
...
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