Skip to content
GitLab
Menu
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
7b2b1827
Commit
7b2b1827
authored
Feb 06, 2009
by
Roberto Raggi
Browse files
Fixes: Parsing of objc method definitions.
parent
8c0aa2d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
7b2b1827
...
...
@@ -3772,7 +3772,6 @@ bool Parser::parseObjCMethodDefinitionList()
DeclarationAST
*
declaration
=
0
;
parseDeclaration
(
declaration
);
}
else
{
unsigned
start
=
cursor
();
DeclarationAST
*
declaration
=
0
;
if
(
!
parseBlockDeclaration
(
declaration
))
{
rewind
(
start
);
...
...
@@ -3791,10 +3790,12 @@ bool Parser::parseObjCMethodDefinitionList()
bool
Parser
::
parseObjCMethodDefinition
()
{
if
(
LA
()
!=
T_MINUS
&&
LA
()
!=
T_PLUS
)
if
(
!
parseObjCMethodPrototype
()
)
return
false
;
parseObjCMethodSignature
();
if
(
LA
()
==
T_SEMICOLON
)
consumeToken
();
StatementAST
*
function_body
=
0
;
parseFunctionBody
(
function_body
);
return
true
;
...
...
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