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
d215737d
Commit
d215737d
authored
Feb 17, 2010
by
Erik Verbruggen
Browse files
Added semantic checks for Q_PROPERTY declarations.
parent
21fdc2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/cplusplus/CheckDeclaration.cpp
View file @
d215737d
...
...
@@ -818,3 +818,17 @@ bool CheckDeclaration::visit(QtFlagsDeclarationAST *ast)
semantic
()
->
check
(
iter
->
value
,
_scope
);
return
false
;
}
bool
CheckDeclaration
::
visit
(
QtPropertyDeclarationAST
*
ast
)
{
if
(
ast
->
type_id
)
semantic
()
->
check
(
ast
->
type_id
,
_scope
);
if
(
ast
->
property_name
)
semantic
()
->
check
(
ast
->
property_name
,
_scope
);
for
(
QtPropertyDeclarationItemListAST
*
iter
=
ast
->
property_declaration_items
;
iter
;
iter
=
iter
->
next
)
{
if
(
iter
->
value
)
semantic
()
->
check
(
iter
->
value
->
expression
,
_scope
);
}
return
false
;
}
src/shared/cplusplus/CheckDeclaration.h
View file @
d215737d
...
...
@@ -77,6 +77,7 @@ protected:
virtual
bool
visit
(
SimpleDeclarationAST
*
ast
);
virtual
bool
visit
(
EmptyDeclarationAST
*
ast
);
virtual
bool
visit
(
AccessDeclarationAST
*
ast
);
virtual
bool
visit
(
QtPropertyDeclarationAST
*
ast
);
virtual
bool
visit
(
QtEnumDeclarationAST
*
ast
);
virtual
bool
visit
(
QtFlagsDeclarationAST
*
ast
);
virtual
bool
visit
(
AsmDefinitionAST
*
ast
);
...
...
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