forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user