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
8c0aa2d2
Commit
8c0aa2d2
authored
Feb 06, 2009
by
Roberto Raggi
Browse files
Fixes: Parsing of block declarations in an @implementation block.
parent
4ef83082
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/Parser.cpp
View file @
8c0aa2d2
...
...
@@ -3763,10 +3763,26 @@ bool Parser::parseObjCMethodDefinitionList()
consumeToken
();
break
;
default:
// ### warning message
case
T_SEMICOLON
:
consumeToken
();
break
;
default:
if
(
LA
()
==
T_EXTERN
&&
LA
(
2
)
==
T_STRING_LITERAL
)
{
DeclarationAST
*
declaration
=
0
;
parseDeclaration
(
declaration
);
}
else
{
unsigned
start
=
cursor
();
DeclarationAST
*
declaration
=
0
;
if
(
!
parseBlockDeclaration
(
declaration
))
{
rewind
(
start
);
_translationUnit
->
error
(
cursor
(),
"skip token `%s'"
,
tok
().
spell
());
consumeToken
();
}
}
break
;
}
// switch
}
...
...
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