summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/CheckUndefinedSymbols.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:47:16 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:47:16 +0100
commit0ae2d96a9b9338cfd587775ee9fa7d51944bcffd (patch)
tree229a2561a2300aa003cda97da37598927d3a3600 /src/libs/cplusplus/CheckUndefinedSymbols.cpp
parente5eb88a31f435eb1dae0f51f969701339a97a79d (diff)
downloadqt-creator-0ae2d96a9b9338cfd587775ee9fa7d51944bcffd.tar.gz
Fixed the AST field names.
Diffstat (limited to 'src/libs/cplusplus/CheckUndefinedSymbols.cpp')
-rw-r--r--src/libs/cplusplus/CheckUndefinedSymbols.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/cplusplus/CheckUndefinedSymbols.cpp b/src/libs/cplusplus/CheckUndefinedSymbols.cpp
index f570f54818..7ea1748e64 100644
--- a/src/libs/cplusplus/CheckUndefinedSymbols.cpp
+++ b/src/libs/cplusplus/CheckUndefinedSymbols.cpp
@@ -103,7 +103,7 @@ bool CheckUndefinedSymbols::isType(const QByteArray &name) const
for (int i = _templateDeclarationStack.size() - 1; i != - 1; --i) {
TemplateDeclarationAST *templateDeclaration = _templateDeclarationStack.at(i);
- for (DeclarationListAST *it = templateDeclaration->template_parameters; it; it = it->next) {
+ for (DeclarationListAST *it = templateDeclaration->template_parameter_list; it; it = it->next) {
DeclarationAST *templateParameter = it->value;
if (templateParameterName(templateParameter) == name)
@@ -424,7 +424,7 @@ bool CheckUndefinedSymbols::visit(CastExpressionAST *ast)
{
if (ast->lparen_token && ast->type_id && ast->rparen_token && ast->expression) {
if (TypeIdAST *cast_type_id = ast->type_id->asTypeId()) {
- SpecifierListAST *type_specifier = cast_type_id->type_specifier;
+ SpecifierListAST *type_specifier = cast_type_id->type_specifier_list;
if (! cast_type_id->declarator && type_specifier && ! type_specifier->next &&
type_specifier->value->asNamedTypeSpecifier() && ast->expression &&
ast->expression->asUnaryExpression()) {
@@ -447,7 +447,7 @@ bool CheckUndefinedSymbols::visit(SizeofExpressionAST *ast)
{
if (ast->lparen_token && ast->expression && ast->rparen_token) {
if (TypeIdAST *type_id = ast->expression->asTypeId()) {
- SpecifierListAST *type_specifier = type_id->type_specifier;
+ SpecifierListAST *type_specifier = type_id->type_specifier_list;
if (! type_id->declarator && type_specifier && ! type_specifier->next &&
type_specifier->value->asNamedTypeSpecifier()) {
// this sizeof expression is ambiguos, e.g.
@@ -455,9 +455,9 @@ bool CheckUndefinedSymbols::visit(SizeofExpressionAST *ast)
// `a' can be a typeid or a nested-expression.
return false;
} else if (type_id->declarator
- && type_id->declarator->postfix_declarators
- && ! type_id->declarator->postfix_declarators->next
- && type_id->declarator->postfix_declarators->value->asArrayDeclarator() != 0) {
+ && type_id->declarator->postfix_declarator_list
+ && ! type_id->declarator->postfix_declarator_list->next
+ && type_id->declarator->postfix_declarator_list->value->asArrayDeclarator() != 0) {
// this sizeof expression is ambiguos, e.g.
// sizeof(a[10])
// `a' can be a typeid or an expression.