diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-12 17:31:34 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-12 17:31:34 +0200 |
commit | 883b56af6823b894fca94209b2946a99af0b7892 (patch) | |
tree | d52fa533abcbba61bc2bfe27c262c01d4e2fde49 /src/shared/cplusplus | |
parent | 1610356c1a0f2dc457939c6a0a93f8ebb590a0d6 (diff) | |
download | qt-creator-883b56af6823b894fca94209b2946a99af0b7892.tar.gz |
Removed the warns.
Diffstat (limited to 'src/shared/cplusplus')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 263 |
1 files changed, 15 insertions, 248 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index 150dd38002..ad7f5f445c 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -61,8 +61,6 @@ using namespace CPlusPlus; -namespace { bool debug_todo = false; } - Bind::Bind(TranslationUnit *unit) : ASTVisitor(unit), _scope(0), @@ -181,8 +179,6 @@ void Bind::attribute(AttributeAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned identifier_token = ast->identifier_token; // unsigned lparen_token = ast->lparen_token; // unsigned tag_token = ast->tag_token; @@ -206,8 +202,6 @@ FullySpecifiedType Bind::declarator(DeclaratorAST *ast, const FullySpecifiedType if (! ast) return type; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); std::swap(_declaratorId, declaratorId); for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { @@ -241,8 +235,6 @@ void Bind::qtPropertyDeclarationItem(QtPropertyDeclarationItemAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned item_name_token = ast->item_name_token; ExpressionTy expression = this->expression(ast->expression); } @@ -259,8 +251,6 @@ void Bind::qtInterfaceName(QtInterfaceNameAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); /*const Name *interface_name =*/ this->name(ast->interface_name); for (NameListAST *it = ast->constraint_list; it; it = it->next) { /*const Name *value =*/ this->name(it->value); @@ -279,8 +269,6 @@ void Bind::baseSpecifier(BaseSpecifierAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned virtual_token = ast->virtual_token; // unsigned access_specifier_token = ast->access_specifier_token; /*const Name *name =*/ this->name(ast->name); @@ -299,8 +287,6 @@ void Bind::ctorInitializer(CtorInitializerAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned colon_token = ast->colon_token; for (MemInitializerListAST *it = ast->member_initializer_list; it; it = it->next) { this->memInitializer(it->value); @@ -320,8 +306,6 @@ void Bind::enumerator(EnumeratorAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned identifier_token = ast->identifier_token; // unsigned equal_token = ast->equal_token; ExpressionTy expression = this->expression(ast->expression); @@ -341,8 +325,6 @@ FullySpecifiedType Bind::exceptionSpecification(ExceptionSpecificationAST *ast, if (! ast) return type; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned throw_token = ast->throw_token; // unsigned lparen_token = ast->lparen_token; // unsigned dot_dot_dot_token = ast->dot_dot_dot_token; @@ -365,8 +347,6 @@ void Bind::memInitializer(MemInitializerAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); /*const Name *name =*/ this->name(ast->name); // unsigned lparen_token = ast->lparen_token; for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { @@ -403,8 +383,6 @@ void Bind::newPlacement(NewPlacementAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { ExpressionTy value = this->expression(it->value); @@ -426,8 +404,6 @@ FullySpecifiedType Bind::newArrayDeclarator(NewArrayDeclaratorAST *ast, const Fu if (! ast) return type; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbracket_token = ast->lbracket_token; ExpressionTy expression = this->expression(ast->expression); // unsigned rbracket_token = ast->rbracket_token; @@ -446,8 +422,6 @@ void Bind::newInitializer(NewInitializerAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; ExpressionTy expression = this->expression(ast->expression); // unsigned rparen_token = ast->rparen_token; @@ -467,8 +441,6 @@ FullySpecifiedType Bind::newTypeId(NewTypeIdAST *ast) if (! ast) return type; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -715,8 +687,6 @@ void Bind::translationUnit(TranslationUnitAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); for (DeclarationListAST *it = ast->declaration_list; it; it = it->next) { this->declaration(it->value); } @@ -734,8 +704,6 @@ void Bind::objCProtocolRefs(ObjCProtocolRefsAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned less_token = ast->less_token; for (NameListAST *it = ast->identifier_list; it; it = it->next) { /*const Name *value =*/ this->name(it->value); @@ -755,8 +723,6 @@ void Bind::objCMessageArgument(ObjCMessageArgumentAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy parameter_value_expression = this->expression(ast->parameter_value_expression); } @@ -772,8 +738,6 @@ void Bind::objCTypeName(ObjCTypeNameAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; // unsigned type_qualifier_token = ast->type_qualifier_token; ExpressionTy type_id = this->expression(ast->type_id); @@ -792,8 +756,6 @@ void Bind::objCInstanceVariablesDeclaration(ObjCInstanceVariablesDeclarationAST if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbrace_token = ast->lbrace_token; for (DeclarationListAST *it = ast->instance_variable_list; it; it = it->next) { this->declaration(it->value); @@ -813,8 +775,6 @@ void Bind::objCPropertyAttribute(ObjCPropertyAttributeAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned attribute_identifier_token = ast->attribute_identifier_token; // unsigned equals_token = ast->equals_token; /*const Name *method_selector =*/ this->name(ast->method_selector); @@ -832,8 +792,6 @@ void Bind::objCMessageArgumentDeclaration(ObjCMessageArgumentDeclarationAST *ast if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); this->objCTypeName(ast->type_name); FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { @@ -855,8 +813,6 @@ void Bind::objCMethodPrototype(ObjCMethodPrototypeAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned method_type_token = ast->method_type_token; this->objCTypeName(ast->type_name); /*const Name *selector =*/ this->name(ast->selector); @@ -883,8 +839,6 @@ void Bind::objCSynthesizedProperty(ObjCSynthesizedPropertyAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned property_identifier_token = ast->property_identifier_token; // unsigned equals_token = ast->equals_token; // unsigned alias_identifier_token = ast->alias_identifier_token; @@ -902,8 +856,6 @@ void Bind::lambdaIntroducer(LambdaIntroducerAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbracket_token = ast->lbracket_token; this->lambdaCapture(ast->lambda_capture); // unsigned rbracket_token = ast->rbracket_token; @@ -921,8 +873,6 @@ void Bind::lambdaCapture(LambdaCaptureAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned default_capture_token = ast->default_capture_token; for (CaptureListAST *it = ast->capture_list; it; it = it->next) { this->capture(it->value); @@ -941,8 +891,6 @@ void Bind::capture(CaptureAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); } bool Bind::visit(LambdaDeclaratorAST *ast) @@ -957,8 +905,6 @@ void Bind::lambdaDeclarator(LambdaDeclaratorAST *ast) if (! ast) return; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); Function *fun = 0; // ### implement me @@ -988,8 +934,6 @@ FullySpecifiedType Bind::trailingReturnType(TrailingReturnTypeAST *ast, const Fu if (! ast) return type; - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned arrow_token = ast->arrow_token; for (SpecifierListAST *it = ast->attributes; it; it = it->next) { type = this->specifier(it->value, type); @@ -1006,8 +950,6 @@ FullySpecifiedType Bind::trailingReturnType(TrailingReturnTypeAST *ast, const Fu // StatementAST bool Bind::visit(QtMemberDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned q_token = ast->q_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy type_id = this->expression(ast->type_id); @@ -1017,8 +959,6 @@ bool Bind::visit(QtMemberDeclarationAST *ast) bool Bind::visit(CaseStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned case_token = ast->case_token; ExpressionTy expression = this->expression(ast->expression); // unsigned colon_token = ast->colon_token; @@ -1028,8 +968,6 @@ bool Bind::visit(CaseStatementAST *ast) bool Bind::visit(CompoundStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbrace_token = ast->lbrace_token; for (StatementListAST *it = ast->statement_list; it; it = it->next) { this->statement(it->value); @@ -1041,16 +979,12 @@ bool Bind::visit(CompoundStatementAST *ast) bool Bind::visit(DeclarationStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); this->declaration(ast->declaration); return false; } bool Bind::visit(DoStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned do_token = ast->do_token; this->statement(ast->statement); // unsigned while_token = ast->while_token; @@ -1063,8 +997,6 @@ bool Bind::visit(DoStatementAST *ast) bool Bind::visit(ExpressionOrDeclarationStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); this->statement(ast->expression); this->statement(ast->declaration); return false; @@ -1072,8 +1004,6 @@ bool Bind::visit(ExpressionOrDeclarationStatementAST *ast) bool Bind::visit(ExpressionStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy expression = this->expression(ast->expression); // unsigned semicolon_token = ast->semicolon_token; return false; @@ -1081,8 +1011,6 @@ bool Bind::visit(ExpressionStatementAST *ast) bool Bind::visit(ForeachStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned foreach_token = ast->foreach_token; // unsigned lparen_token = ast->lparen_token; FullySpecifiedType type; @@ -1102,8 +1030,6 @@ bool Bind::visit(ForeachStatementAST *ast) bool Bind::visit(ForStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned for_token = ast->for_token; // unsigned lparen_token = ast->lparen_token; this->statement(ast->initializer); @@ -1118,8 +1044,6 @@ bool Bind::visit(ForStatementAST *ast) bool Bind::visit(IfStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned if_token = ast->if_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy condition = this->expression(ast->condition); @@ -1133,8 +1057,6 @@ bool Bind::visit(IfStatementAST *ast) bool Bind::visit(LabeledStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned label_token = ast->label_token; // unsigned colon_token = ast->colon_token; this->statement(ast->statement); @@ -1143,8 +1065,7 @@ bool Bind::visit(LabeledStatementAST *ast) bool Bind::visit(BreakStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned break_token = ast->break_token; // unsigned semicolon_token = ast->semicolon_token; return false; @@ -1152,8 +1073,7 @@ bool Bind::visit(BreakStatementAST *ast) bool Bind::visit(ContinueStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned continue_token = ast->continue_token; // unsigned semicolon_token = ast->semicolon_token; return false; @@ -1161,8 +1081,7 @@ bool Bind::visit(ContinueStatementAST *ast) bool Bind::visit(GotoStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned goto_token = ast->goto_token; // unsigned identifier_token = ast->identifier_token; // unsigned semicolon_token = ast->semicolon_token; @@ -1171,8 +1090,6 @@ bool Bind::visit(GotoStatementAST *ast) bool Bind::visit(ReturnStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned return_token = ast->return_token; ExpressionTy expression = this->expression(ast->expression); // unsigned semicolon_token = ast->semicolon_token; @@ -1181,8 +1098,6 @@ bool Bind::visit(ReturnStatementAST *ast) bool Bind::visit(SwitchStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned switch_token = ast->switch_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy condition = this->expression(ast->condition); @@ -1194,8 +1109,6 @@ bool Bind::visit(SwitchStatementAST *ast) bool Bind::visit(TryBlockStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned try_token = ast->try_token; this->statement(ast->statement); for (CatchClauseListAST *it = ast->catch_clause_list; it; it = it->next) { @@ -1206,8 +1119,6 @@ bool Bind::visit(TryBlockStatementAST *ast) bool Bind::visit(CatchClauseAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned catch_token = ast->catch_token; // unsigned lparen_token = ast->lparen_token; this->declaration(ast->exception_declaration); @@ -1219,8 +1130,6 @@ bool Bind::visit(CatchClauseAST *ast) bool Bind::visit(WhileStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned while_token = ast->while_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy condition = this->expression(ast->condition); @@ -1232,8 +1141,6 @@ bool Bind::visit(WhileStatementAST *ast) bool Bind::visit(ObjCFastEnumerationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned for_token = ast->for_token; // unsigned lparen_token = ast->lparen_token; FullySpecifiedType type; @@ -1253,8 +1160,6 @@ bool Bind::visit(ObjCFastEnumerationAST *ast) bool Bind::visit(ObjCSynchronizedStatementAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned synchronized_token = ast->synchronized_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy synchronized_object = this->expression(ast->synchronized_object); @@ -1267,16 +1172,12 @@ bool Bind::visit(ObjCSynchronizedStatementAST *ast) // ExpressionAST bool Bind::visit(IdExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); /*const Name *name =*/ this->name(ast->name); return false; } bool Bind::visit(CompoundExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; this->statement(ast->statement); // unsigned rparen_token = ast->rparen_token; @@ -1285,8 +1186,6 @@ bool Bind::visit(CompoundExpressionAST *ast) bool Bind::visit(CompoundLiteralAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; ExpressionTy type_id = this->expression(ast->type_id); // unsigned rparen_token = ast->rparen_token; @@ -1296,8 +1195,6 @@ bool Bind::visit(CompoundLiteralAST *ast) bool Bind::visit(QtMethodAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned method_token = ast->method_token; // unsigned lparen_token = ast->lparen_token; FullySpecifiedType type; @@ -1309,8 +1206,6 @@ bool Bind::visit(QtMethodAST *ast) bool Bind::visit(BinaryExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy left_expression = this->expression(ast->left_expression); // unsigned binary_op_token = ast->binary_op_token; ExpressionTy right_expression = this->expression(ast->right_expression); @@ -1319,8 +1214,6 @@ bool Bind::visit(BinaryExpressionAST *ast) bool Bind::visit(CastExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; ExpressionTy type_id = this->expression(ast->type_id); // unsigned rparen_token = ast->rparen_token; @@ -1330,8 +1223,6 @@ bool Bind::visit(CastExpressionAST *ast) bool Bind::visit(ConditionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1343,8 +1234,6 @@ bool Bind::visit(ConditionAST *ast) bool Bind::visit(ConditionalExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy condition = this->expression(ast->condition); // unsigned question_token = ast->question_token; ExpressionTy left_expression = this->expression(ast->left_expression); @@ -1355,8 +1244,6 @@ bool Bind::visit(ConditionalExpressionAST *ast) bool Bind::visit(CppCastExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned cast_token = ast->cast_token; // unsigned less_token = ast->less_token; ExpressionTy type_id = this->expression(ast->type_id); @@ -1369,8 +1256,6 @@ bool Bind::visit(CppCastExpressionAST *ast) bool Bind::visit(DeleteExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned scope_token = ast->scope_token; // unsigned delete_token = ast->delete_token; // unsigned lbracket_token = ast->lbracket_token; @@ -1381,8 +1266,6 @@ bool Bind::visit(DeleteExpressionAST *ast) bool Bind::visit(ArrayInitializerAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbrace_token = ast->lbrace_token; for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { ExpressionTy value = this->expression(it->value); @@ -1393,8 +1276,6 @@ bool Bind::visit(ArrayInitializerAST *ast) bool Bind::visit(NewExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned scope_token = ast->scope_token; // unsigned new_token = ast->new_token; this->newPlacement(ast->new_placement); @@ -1408,8 +1289,6 @@ bool Bind::visit(NewExpressionAST *ast) bool Bind::visit(TypeidExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned typeid_token = ast->typeid_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy expression = this->expression(ast->expression); @@ -1419,8 +1298,6 @@ bool Bind::visit(TypeidExpressionAST *ast) bool Bind::visit(TypenameCallExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned typename_token = ast->typename_token; /*const Name *name =*/ this->name(ast->name); // unsigned lparen_token = ast->lparen_token; @@ -1433,8 +1310,6 @@ bool Bind::visit(TypenameCallExpressionAST *ast) bool Bind::visit(TypeConstructorCallAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1449,8 +1324,6 @@ bool Bind::visit(TypeConstructorCallAST *ast) bool Bind::visit(SizeofExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned sizeof_token = ast->sizeof_token; // unsigned dot_dot_dot_token = ast->dot_dot_dot_token; // unsigned lparen_token = ast->lparen_token; @@ -1461,32 +1334,27 @@ bool Bind::visit(SizeofExpressionAST *ast) bool Bind::visit(NumericLiteralAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned literal_token = ast->literal_token; return false; } bool Bind::visit(BoolLiteralAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned literal_token = ast->literal_token; return false; } bool Bind::visit(ThisExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned this_token = ast->this_token; return false; } bool Bind::visit(NestedExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lparen_token = ast->lparen_token; ExpressionTy expression = this->expression(ast->expression); // unsigned rparen_token = ast->rparen_token; @@ -1495,8 +1363,6 @@ bool Bind::visit(NestedExpressionAST *ast) bool Bind::visit(StringLiteralAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned literal_token = ast->literal_token; ExpressionTy next = this->expression(ast->next); return false; @@ -1504,8 +1370,6 @@ bool Bind::visit(StringLiteralAST *ast) bool Bind::visit(ThrowExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned throw_token = ast->throw_token; ExpressionTy expression = this->expression(ast->expression); return false; @@ -1513,8 +1377,6 @@ bool Bind::visit(ThrowExpressionAST *ast) bool Bind::visit(TypeIdAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1526,8 +1388,6 @@ bool Bind::visit(TypeIdAST *ast) bool Bind::visit(UnaryExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned unary_op_token = ast->unary_op_token; ExpressionTy expression = this->expression(ast->expression); return false; @@ -1535,8 +1395,6 @@ bool Bind::visit(UnaryExpressionAST *ast) bool Bind::visit(ObjCMessageExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbracket_token = ast->lbracket_token; /*ExpressionTy receiver_expression =*/ this->expression(ast->receiver_expression); /*const Name *selector =*/ this->name(ast->selector); @@ -1549,8 +1407,7 @@ bool Bind::visit(ObjCMessageExpressionAST *ast) bool Bind::visit(ObjCProtocolExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned protocol_token = ast->protocol_token; // unsigned lparen_token = ast->lparen_token; // unsigned identifier_token = ast->identifier_token; @@ -1560,8 +1417,6 @@ bool Bind::visit(ObjCProtocolExpressionAST *ast) bool Bind::visit(ObjCEncodeExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned encode_token = ast->encode_token; this->objCTypeName(ast->type_name); return false; @@ -1569,8 +1424,6 @@ bool Bind::visit(ObjCEncodeExpressionAST *ast) bool Bind::visit(ObjCSelectorExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned selector_token = ast->selector_token; // unsigned lparen_token = ast->lparen_token; /*const Name *selector =*/ this->name(ast->selector); @@ -1580,8 +1433,6 @@ bool Bind::visit(ObjCSelectorExpressionAST *ast) bool Bind::visit(LambdaExpressionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); this->lambdaIntroducer(ast->lambda_introducer); this->lambdaDeclarator(ast->lambda_declarator); this->statement(ast->statement); @@ -1590,8 +1441,6 @@ bool Bind::visit(LambdaExpressionAST *ast) bool Bind::visit(BracedInitializerAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbrace_token = ast->lbrace_token; for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { ExpressionTy value = this->expression(it->value); @@ -1605,8 +1454,6 @@ bool Bind::visit(BracedInitializerAST *ast) // DeclarationAST bool Bind::visit(SimpleDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned qt_invokable_token = ast->qt_invokable_token; FullySpecifiedType type; for (SpecifierListAST *it = ast->decl_specifier_list; it; it = it->next) { @@ -1623,16 +1470,14 @@ bool Bind::visit(SimpleDeclarationAST *ast) bool Bind::visit(EmptyDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned semicolon_token = ast->semicolon_token; return false; } bool Bind::visit(AccessDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned access_specifier_token = ast->access_specifier_token; // unsigned slots_token = ast->slots_token; // unsigned colon_token = ast->colon_token; @@ -1641,16 +1486,13 @@ bool Bind::visit(AccessDeclarationAST *ast) bool Bind::visit(QtObjectTagAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned q_object_token = ast->q_object_token; return false; } bool Bind::visit(QtPrivateSlotAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned q_private_slot_token = ast->q_private_slot_token; // unsigned lparen_token = ast->lparen_token; // unsigned dptr_token = ast->dptr_token; @@ -1669,8 +1511,6 @@ bool Bind::visit(QtPrivateSlotAST *ast) bool Bind::visit(QtPropertyDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned property_specifier_token = ast->property_specifier_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy type_id = this->expression(ast->type_id); @@ -1684,8 +1524,6 @@ bool Bind::visit(QtPropertyDeclarationAST *ast) bool Bind::visit(QtEnumDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned enum_specifier_token = ast->enum_specifier_token; // unsigned lparen_token = ast->lparen_token; for (NameListAST *it = ast->enumerator_list; it; it = it->next) { @@ -1697,8 +1535,6 @@ bool Bind::visit(QtEnumDeclarationAST *ast) bool Bind::visit(QtFlagsDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned flags_specifier_token = ast->flags_specifier_token; // unsigned lparen_token = ast->lparen_token; for (NameListAST *it = ast->flag_enums_list; it; it = it->next) { @@ -1710,8 +1546,6 @@ bool Bind::visit(QtFlagsDeclarationAST *ast) bool Bind::visit(QtInterfacesDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned interfaces_token = ast->interfaces_token; // unsigned lparen_token = ast->lparen_token; for (QtInterfaceNameListAST *it = ast->interface_name_list; it; it = it->next) { @@ -1723,8 +1557,7 @@ bool Bind::visit(QtInterfacesDeclarationAST *ast) bool Bind::visit(AsmDefinitionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned asm_token = ast->asm_token; // unsigned volatile_token = ast->volatile_token; // unsigned lparen_token = ast->lparen_token; @@ -1735,8 +1568,6 @@ bool Bind::visit(AsmDefinitionAST *ast) bool Bind::visit(ExceptionDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1749,8 +1580,6 @@ bool Bind::visit(ExceptionDeclarationAST *ast) bool Bind::visit(FunctionDefinitionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned qt_invokable_token = ast->qt_invokable_token; FullySpecifiedType type; for (SpecifierListAST *it = ast->decl_specifier_list; it; it = it->next) { @@ -1766,8 +1595,6 @@ bool Bind::visit(FunctionDefinitionAST *ast) bool Bind::visit(LinkageBodyAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned lbrace_token = ast->lbrace_token; for (DeclarationListAST *it = ast->declaration_list; it; it = it->next) { this->declaration(it->value); @@ -1778,8 +1605,6 @@ bool Bind::visit(LinkageBodyAST *ast) bool Bind::visit(LinkageSpecificationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned extern_token = ast->extern_token; // unsigned extern_type_token = ast->extern_type_token; this->declaration(ast->declaration); @@ -1788,8 +1613,6 @@ bool Bind::visit(LinkageSpecificationAST *ast) bool Bind::visit(NamespaceAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned namespace_token = ast->namespace_token; // unsigned identifier_token = ast->identifier_token; FullySpecifiedType type; @@ -1803,8 +1626,6 @@ bool Bind::visit(NamespaceAST *ast) bool Bind::visit(NamespaceAliasDefinitionAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned namespace_token = ast->namespace_token; // unsigned namespace_name_token = ast->namespace_name_token; // unsigned equal_token = ast->equal_token; @@ -1815,8 +1636,6 @@ bool Bind::visit(NamespaceAliasDefinitionAST *ast) bool Bind::visit(ParameterDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1831,8 +1650,6 @@ bool Bind::visit(ParameterDeclarationAST *ast) bool Bind::visit(TemplateDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned export_token = ast->export_token; // unsigned template_token = ast->template_token; // unsigned less_token = ast->less_token; @@ -1847,8 +1664,6 @@ bool Bind::visit(TemplateDeclarationAST *ast) bool Bind::visit(TypenameTypeParameterAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned classkey_token = ast->classkey_token; // unsigned dot_dot_dot_token = ast->dot_dot_dot_token; /*const Name *name =*/ this->name(ast->name); @@ -1860,8 +1675,6 @@ bool Bind::visit(TypenameTypeParameterAST *ast) bool Bind::visit(TemplateTypeParameterAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned template_token = ast->template_token; // unsigned less_token = ast->less_token; for (DeclarationListAST *it = ast->template_parameter_list; it; it = it->next) { @@ -1879,8 +1692,6 @@ bool Bind::visit(TemplateTypeParameterAST *ast) bool Bind::visit(UsingAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned using_token = ast->using_token; // unsigned typename_token = ast->typename_token; /*const Name *name =*/ this->name(ast->name); @@ -1891,8 +1702,6 @@ bool Bind::visit(UsingAST *ast) bool Bind::visit(UsingDirectiveAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned using_token = ast->using_token; // unsigned namespace_token = ast->namespace_token; /*const Name *name =*/ this->name(ast->name); @@ -1903,8 +1712,6 @@ bool Bind::visit(UsingDirectiveAST *ast) bool Bind::visit(ObjCClassForwardDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1920,8 +1727,6 @@ bool Bind::visit(ObjCClassForwardDeclarationAST *ast) bool Bind::visit(ObjCClassDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1946,8 +1751,6 @@ bool Bind::visit(ObjCClassDeclarationAST *ast) bool Bind::visit(ObjCProtocolForwardDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1963,8 +1766,6 @@ bool Bind::visit(ObjCProtocolForwardDeclarationAST *ast) bool Bind::visit(ObjCProtocolDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -1982,16 +1783,14 @@ bool Bind::visit(ObjCProtocolDeclarationAST *ast) bool Bind::visit(ObjCVisibilityDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned visibility_token = ast->visibility_token; return false; } bool Bind::visit(ObjCPropertyDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { type = this->specifier(it->value, type); @@ -2009,8 +1808,6 @@ bool Bind::visit(ObjCPropertyDeclarationAST *ast) bool Bind::visit(ObjCMethodDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); this->objCMethodPrototype(ast->method_prototype); this->statement(ast->function_body); // unsigned semicolon_token = ast->semicolon_token; @@ -2019,8 +1816,6 @@ bool Bind::visit(ObjCMethodDeclarationAST *ast) bool Bind::visit(ObjCSynthesizedPropertiesDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned synthesized_token = ast->synthesized_token; for (ObjCSynthesizedPropertyListAST *it = ast->property_identifier_list; it; it = it->next) { this->objCSynthesizedProperty(it->value); @@ -2031,8 +1826,6 @@ bool Bind::visit(ObjCSynthesizedPropertiesDeclarationAST *ast) bool Bind::visit(ObjCDynamicPropertiesDeclarationAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned dynamic_token = ast->dynamic_token; for (NameListAST *it = ast->property_identifier_list; it; it = it->next) { /*const Name *value =*/ this->name(it->value); @@ -2138,16 +1931,13 @@ bool Bind::visit(TemplateIdAST *ast) // SpecifierAST bool Bind::visit(SimpleSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned specifier_token = ast->specifier_token; return false; } bool Bind::visit(AttributeSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned attribute_token = ast->attribute_token; // unsigned first_lparen_token = ast->first_lparen_token; // unsigned second_lparen_token = ast->second_lparen_token; @@ -2161,8 +1951,6 @@ bool Bind::visit(AttributeSpecifierAST *ast) bool Bind::visit(TypeofSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned typeof_token = ast->typeof_token; // unsigned lparen_token = ast->lparen_token; ExpressionTy expression = this->expression(ast->expression); @@ -2172,8 +1960,6 @@ bool Bind::visit(TypeofSpecifierAST *ast) bool Bind::visit(ClassSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned classkey_token = ast->classkey_token; FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { @@ -2196,16 +1982,12 @@ bool Bind::visit(ClassSpecifierAST *ast) bool Bind::visit(NamedTypeSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); /*const Name *name =*/ this->name(ast->name); return false; } bool Bind::visit(ElaboratedTypeSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned classkey_token = ast->classkey_token; FullySpecifiedType type; for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) { @@ -2217,8 +1999,6 @@ bool Bind::visit(ElaboratedTypeSpecifierAST *ast) bool Bind::visit(EnumSpecifierAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned enum_token = ast->enum_token; /*const Name *name =*/ this->name(ast->name); // unsigned lbrace_token = ast->lbrace_token; @@ -2234,8 +2014,6 @@ bool Bind::visit(EnumSpecifierAST *ast) // PtrOperatorAST bool Bind::visit(PointerToMemberAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned global_scope_token = ast->global_scope_token; for (NestedNameSpecifierListAST *it = ast->nested_name_specifier_list; it; it = it->next) { /*const Name *nested_name_specifier = */ this->nestedNameSpecifier(it->value); @@ -2250,8 +2028,6 @@ bool Bind::visit(PointerToMemberAST *ast) bool Bind::visit(PointerAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); // unsigned star_token = ast->star_token; FullySpecifiedType type; for (SpecifierListAST *it = ast->cv_qualifier_list; it; it = it->next) { @@ -2262,8 +2038,7 @@ bool Bind::visit(PointerAST *ast) bool Bind::visit(ReferenceAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); + (void) ast; // unsigned reference_token = ast->reference_token; return false; } @@ -2272,8 +2047,6 @@ bool Bind::visit(ReferenceAST *ast) // PostfixAST bool Bind::visit(CallAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy base_expression = this->expression(ast->base_expression); // unsigned lparen_token = ast->lparen_token; for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { @@ -2285,8 +2058,6 @@ bool Bind::visit(CallAST *ast) bool Bind::visit(ArrayAccessAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy base_expression = this->expression(ast->base_expression); // unsigned lbracket_token = ast->lbracket_token; ExpressionTy expression = this->expression(ast->expression); @@ -2296,8 +2067,6 @@ bool Bind::visit(ArrayAccessAST *ast) bool Bind::visit(PostIncrDecrAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy base_expression = this->expression(ast->base_expression); // unsigned incr_decr_token = ast->incr_decr_token; return false; @@ -2305,8 +2074,6 @@ bool Bind::visit(PostIncrDecrAST *ast) bool Bind::visit(MemberAccessAST *ast) { - if (debug_todo) - translationUnit()->warning(ast->firstToken(), "TODO: %s", __func__); ExpressionTy base_expression = this->expression(ast->base_expression); // unsigned access_token = ast->access_token; // unsigned template_token = ast->template_token; |