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
d1bbbced
Commit
d1bbbced
authored
Jun 04, 2009
by
Roberto Raggi
Browse files
Check the declarator's initializer.
parent
97d162e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckDeclaration.cpp
View file @
d1bbbced
...
...
@@ -211,6 +211,11 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast)
else
if
(
ty
.
isTypedef
())
symbol
->
setStorage
(
Symbol
::
Typedef
);
if
(
it
->
declarator
&&
it
->
declarator
->
initializer
)
{
FullySpecifiedType
initTy
=
semantic
()
->
check
(
it
->
declarator
->
initializer
,
_scope
);
Q_UNUSED
(
initTy
);
}
*
decl_it
=
new
(
translationUnit
()
->
memoryPool
())
List
<
Declaration
*>
();
(
*
decl_it
)
->
value
=
symbol
;
decl_it
=
&
(
*
decl_it
)
->
next
;
...
...
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