From bc28e5d99361a19f1bb5d0a4dcfeaf168027780d Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Fri, 13 Aug 2010 17:04:57 +0200 Subject: [PATCH] Compile --- tests/auto/icheckbuild/parsemanager.cpp | 38 ++++++++++++------------- tests/manual/cplusplus-dump/main.cpp | 1 - tests/manual/cplusplus/main.cpp | 1 - 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/tests/auto/icheckbuild/parsemanager.cpp b/tests/auto/icheckbuild/parsemanager.cpp index 34c9d5f0db3..b5bfed282c1 100644 --- a/tests/auto/icheckbuild/parsemanager.cpp +++ b/tests/auto/icheckbuild/parsemanager.cpp @@ -33,10 +33,10 @@ #include "Literals.h" #include "Overview.h" #include "Scope.h" -#include "Semantic.h" #include "TranslationUnit.h" #include "AST.h" #include "Symbols.h" +#include "Bind.h" #include #include "Name.h" #include "cpptools/cppmodelmanager.h" @@ -317,7 +317,7 @@ QList ParseManager::CreateClassLists(bool isInterfaceHeader) } /******************************************** -Gets all the baseclass from a class and +Gets all the baseclass from a class and add those base classes into the baseclasslist ********************************************/ void ParseManager::getBaseClasses(const CLASSLISTITEM* pclass @@ -339,8 +339,8 @@ void ParseManager::getBaseClasses(const CLASSLISTITEM* pclass bool found = false; foreach(CLASSLISTITEM* pclspec, allclasslist) { - if(pclspec->classspec->symbol->name() - && pBaseSpec->symbol->name() + if(pclspec->classspec->symbol->name() + && pBaseSpec->symbol->name() && pclspec->classspec->symbol->name()->isEqualTo(pBaseSpec->symbol->name())) { child.push_back(pclspec); @@ -368,7 +368,7 @@ void ParseManager::getBaseClasses(const CLASSLISTITEM* pclass /************************************************** This function finds and creates all Elements wich are significant for MetaDatas. -Those element will be added in the aparameter +Those element will be added in the aparameter lists. **************************************************/ void ParseManager::getElements(QList &functionlist @@ -401,7 +401,7 @@ void ParseManager::getElements(QList &functionlist SimpleDeclarationAST *pdecl = pmemberlist->value->asSimpleDeclaration(); if(pdecl){ - for(List* decllist = pdecl->symbols; decllist; decllist = decllist->next) + for(List* decllist = pdecl->symbols; decllist; decllist = decllist->next) { Function* pfct = decllist->value->type()->asFunctionType(); if(pfct){ @@ -491,13 +491,13 @@ void ParseManager::getElements(QList &functionlist } /********************************************* -Function that starts the comare between the +Function that starts the comare between the parser result and their metadata content. *********************************************/ bool ParseManager::checkAllMetadatas(ParseManager* pInterfaceParserManager, QString resultfile) { bool ret = true; - + //Create output file if(resultfile != "" && ::m_resultFile == 0){ ::m_resultFile = new QFile(resultfile); @@ -758,7 +758,7 @@ QList ParseManager::checkMetadataFunctions(const QList ParseManager::containsAllMetadataFunction(const QList ParseManager::containsAllPropertyFunction(const QList ParseManager::containsAllEnums(const QList &classq } /************************************ -Function that gives back an error +Function that gives back an error string for a Q_ENUMS mismatch. ************************************/ QStringList ParseManager::getErrorMessage(QENUMITEM* qenum) @@ -1355,8 +1355,8 @@ void ParseManager::assignFlagValues(QFLAGITEM* qflags, const QListhighestlevelclass->classspec->symbol->members(); - Symbol *s = classMembers->lookat(qflags->name); + Scope *classMembers = qflags->highestlevelclass->classspec->symbol; + Symbol *s = classMembers->find(qflags->name); if (s->isTypedef()) { FullySpecifiedType ty = s->type(); if (Enum *e = ty->asEnumType()) { @@ -1426,7 +1426,7 @@ QList ParseManager::containsAllFlags(const QList &classq } /************************************ -Function that gives back an error +Function that gives back an error string for a Q_FLAGS mismatch. ************************************/ QStringList ParseManager::getErrorMessage(QFLAGITEM* pfg) @@ -1503,8 +1503,8 @@ PROPERTYITEM *PROPERTYITEM::create(QtPropertyDeclarationAST *ast, const CLASSLIS item->trlUnit = clazz->trlUnit; if (ast->type_id) { - Semantic mySem(item->trlUnit); - item->type = mySem.check(ast->type_id, clazz->classspec->symbol->asClass()->members()); + Bind bind(item->trlUnit); + item->type = bind(ast->type_id, clazz->classspec->symbol); } for (QtPropertyDeclarationItemListAST *it = ast->property_declaration_items; diff --git a/tests/manual/cplusplus-dump/main.cpp b/tests/manual/cplusplus-dump/main.cpp index 8ca89395abc..56fe7c38960 100644 --- a/tests/manual/cplusplus-dump/main.cpp +++ b/tests/manual/cplusplus-dump/main.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include diff --git a/tests/manual/cplusplus/main.cpp b/tests/manual/cplusplus/main.cpp index 2fbb4743281..b4b937b7d3d 100644 --- a/tests/manual/cplusplus/main.cpp +++ b/tests/manual/cplusplus/main.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include