Cleanup the C++ front-end.

Removed CPLUSPLUS_BEGIN/END_NAMESPACE & co and made it possible to compile the parser with CPLUSPLUS_WITHOUT_QT.
This commit is contained in:
Roberto Raggi
2009-10-20 11:21:25 +02:00
parent 0a7d402d85
commit 13675cf6ed
71 changed files with 215 additions and 237 deletions

View File

@@ -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