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
Tobias Hunger
qt-creator
Commits
9394b4df
Commit
9394b4df
authored
Dec 03, 2008
by
Roberto Raggi
Browse files
Fixed the parsing of class-specifiers when nested in a function definition.
parent
4c4602b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/Parser.cpp
View file @
9394b4df
...
@@ -1191,6 +1191,11 @@ bool Parser::parseClassSpecifier(SpecifierAST *&node)
...
@@ -1191,6 +1191,11 @@ bool Parser::parseClassSpecifier(SpecifierAST *&node)
NameAST
*
name
=
0
;
NameAST
*
name
=
0
;
parseName
(
name
);
parseName
(
name
);
bool
parsed
=
false
;
const
bool
previousInFunctionBody
=
_inFunctionBody
;
_inFunctionBody
=
false
;
if
(
LA
()
==
T_COLON
||
LA
()
==
T_LBRACE
)
{
if
(
LA
()
==
T_COLON
||
LA
()
==
T_LBRACE
)
{
BaseSpecifierAST
*
base_clause
=
0
;
BaseSpecifierAST
*
base_clause
=
0
;
if
(
LA
()
==
T_COLON
)
{
if
(
LA
()
==
T_COLON
)
{
...
@@ -1233,9 +1238,12 @@ bool Parser::parseClassSpecifier(SpecifierAST *&node)
...
@@ -1233,9 +1238,12 @@ bool Parser::parseClassSpecifier(SpecifierAST *&node)
}
}
}
}
node
=
ast
;
node
=
ast
;
return
true
;
parsed
=
true
;
}
}
return
false
;
_inFunctionBody
=
previousInFunctionBody
;
return
parsed
;
}
}
bool
Parser
::
parseAccessSpecifier
(
SpecifierAST
*&
node
)
bool
Parser
::
parseAccessSpecifier
(
SpecifierAST
*&
node
)
...
...
Write
Preview
Supports
Markdown
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