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
b92e1a0a
Commit
b92e1a0a
authored
Sep 21, 2009
by
Erik Verbruggen
Browse files
Wee little cleanup.
parent
5c8e6e9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckDeclaration.cpp
View file @
b92e1a0a
...
...
@@ -594,16 +594,16 @@ bool CheckDeclaration::visit(ObjCMethodDeclarationAST *ast)
return
false
;
Symbol
*
symbol
;
if
(
!
ast
->
function_body
)
{
Declaration
*
decl
=
control
()
->
newDeclaration
(
ast
->
firstToken
(),
methodType
->
name
());
decl
->
setType
(
methodType
);
symbol
=
decl
;
}
else
{
if
(
ast
->
function_body
)
{
if
(
!
semantic
()
->
skipFunctionBodies
())
{
semantic
()
->
check
(
ast
->
function_body
,
methodType
->
members
());
}
symbol
=
methodType
;
}
else
{
Declaration
*
decl
=
control
()
->
newDeclaration
(
ast
->
firstToken
(),
methodType
->
name
());
decl
->
setType
(
methodType
);
symbol
=
decl
;
}
symbol
->
setStartOffset
(
tokenAt
(
ast
->
firstToken
()).
offset
);
...
...
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