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
eb1baa9e
Commit
eb1baa9e
authored
Dec 29, 2009
by
Erik Verbruggen
Browse files
Fix to selector parameter position.
parent
5723682b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckDeclaration.cpp
View file @
eb1baa9e
...
...
@@ -666,22 +666,22 @@ bool CheckDeclaration::visit(ObjCMethodDeclarationAST *ast)
return
false
;
FullySpecifiedType
ty
=
semantic
()
->
check
(
ast
->
method_prototype
,
_scope
);
ObjCMethod
*
methodTy
pe
=
ty
.
type
()
->
asObjCMethodType
();
if
(
!
methodTy
pe
)
ObjCMethod
*
methodTy
=
ty
.
type
()
->
asObjCMethodType
();
if
(
!
methodTy
)
return
false
;
Symbol
*
symbol
;
if
(
ast
->
function_body
)
{
if
(
!
semantic
()
->
skipFunctionBodies
())
{
semantic
()
->
check
(
ast
->
function_body
,
methodTy
pe
->
members
());
semantic
()
->
check
(
ast
->
function_body
,
methodTy
->
members
());
}
symbol
=
methodTy
pe
;
symbol
=
methodTy
;
}
else
{
Declaration
*
decl
=
control
()
->
newDeclaration
(
ast
->
firstToken
(),
methodTy
pe
->
name
());
decl
->
setType
(
methodTy
pe
);
Declaration
*
decl
=
control
()
->
newDeclaration
(
ast
->
firstToken
(),
methodTy
->
name
());
decl
->
setType
(
methodTy
);
symbol
=
decl
;
symbol
->
setStorage
(
methodTy
pe
->
storage
());
symbol
->
setStorage
(
methodTy
->
storage
());
}
symbol
->
setStartOffset
(
tokenAt
(
ast
->
firstToken
()).
offset
);
...
...
src/shared/cplusplus/CheckDeclarator.cpp
View file @
eb1baa9e
...
...
@@ -97,10 +97,11 @@ FullySpecifiedType CheckDeclarator::check(PtrOperatorListAST *ptrOperators,
FullySpecifiedType
CheckDeclarator
::
check
(
ObjCMethodPrototypeAST
*
methodPrototype
,
Scope
*
scope
)
{
FullySpecifiedType
previousType
=
switchFullySpecifiedType
(
FullySpecifiedType
());
Scope
*
previousScope
=
switchScope
(
scope
);
accept
(
methodPrototype
);
(
void
)
switchScope
(
previousScope
);
return
_f
ullySpecifiedType
;
return
switchF
ullySpecifiedType
(
previousType
)
;
}
DeclaratorAST
*
CheckDeclarator
::
switchDeclarator
(
DeclaratorAST
*
declarator
)
...
...
src/shared/cplusplus/CheckName.cpp
View file @
eb1baa9e
...
...
@@ -423,7 +423,7 @@ bool CheckName::visit(ObjCMessageArgumentDeclarationAST *ast)
_name
=
control
()
->
nameId
(
id
);
ast
->
name
=
_name
;
Argument
*
arg
=
control
()
->
newArgument
(
ast
->
firstT
oken
()
,
_name
);
Argument
*
arg
=
control
()
->
newArgument
(
ast
->
param_name_t
oken
,
_name
);
ast
->
argument
=
arg
;
arg
->
setType
(
type
);
arg
->
setInitializer
(
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