From 13675cf6ed022db43f961473f78a97325014fea2 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 20 Oct 2009 11:21:25 +0200 Subject: Cleanup the C++ front-end. Removed CPLUSPLUS_BEGIN/END_NAMESPACE & co and made it possible to compile the parser with CPLUSPLUS_WITHOUT_QT. --- src/shared/cplusplus/CheckExpression.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/shared/cplusplus/CheckExpression.cpp') diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index 805975b625..02263d6b82 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -56,7 +56,7 @@ #include "Symbols.h" #include "Control.h" -CPLUSPLUS_BEGIN_NAMESPACE +using namespace CPlusPlus; CheckExpression::CheckExpression(Semantic *semantic) : SemanticCheck(semantic), @@ -207,7 +207,6 @@ bool CheckExpression::visit(NewExpressionAST *ast) if (ast->new_placement) { for (ExpressionListAST *it = ast->new_placement->expression_list; it; it = it->next) { FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); - Q_UNUSED(exprTy) } } @@ -215,18 +214,15 @@ bool CheckExpression::visit(NewExpressionAST *ast) if (ast->new_type_id) { FullySpecifiedType ty = semantic()->check(ast->new_type_id->type_specifier, _scope); - Q_UNUSED(ty) for (NewArrayDeclaratorAST *it = ast->new_type_id->new_array_declarators; it; it = it->next) { FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); - Q_UNUSED(exprTy) } } // ### process new-initializer if (ast->new_initializer) { FullySpecifiedType exprTy = semantic()->check(ast->new_initializer->expression, _scope); - Q_UNUSED(exprTy) } return false; @@ -397,4 +393,4 @@ bool CheckExpression::visit(ObjCSelectorExpressionAST *ast) return false; } -CPLUSPLUS_END_NAMESPACE + -- cgit v1.2.1