forked from qt-creator/qt-creator
C++: Compile fixes in tests and tools.
After some refactorings not all usages, especially in tests and tools, were adapted. Change-Id: I7ed24bb1c8e55e55ed74eda3a8fd7610e725f4cb Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -779,7 +779,7 @@ ClassOrNamespace *ClassOrNamespace::nestedType(const Name *name, ClassOrNamespac
|
||||
Symbol *clone = cloner.symbol(s, &subst);
|
||||
instantiation->_symbols.append(clone);
|
||||
#ifdef DEBUG_LOOKUP
|
||||
Overview oo;oo.setShowFunctionSignatures(true);oo.setShowReturnTypes(true);oo.setShowTemplateParameters(true);
|
||||
Overview oo;oo.showFunctionSignatures = true;oo.showReturnTypes = true; oo.showTemplateParameters = true;
|
||||
qDebug()<<"cloned"<<oo(clone->type());
|
||||
#endif // DEBUG_LOOKUP
|
||||
}
|
||||
|
||||
@@ -774,8 +774,8 @@ QList<LookupItem> ResolveExpression::getMembers(ClassOrNamespace *binding, const
|
||||
FullySpecifiedType instantiatedTy = rewriteType(decl->type(), &env, _context.control().data());
|
||||
|
||||
Overview oo;
|
||||
oo.setShowReturnTypes(true);
|
||||
oo.setShowFunctionSignatures(true);
|
||||
oo.showReturnTypes = true;
|
||||
oo.showFunctionSignatures = true;
|
||||
|
||||
qDebug() << "original:" << oo(decl->type(), decl->name()) << "inst:" << oo(instantiatedTy, decl->name());
|
||||
|
||||
|
||||
@@ -486,7 +486,7 @@ void tst_Semantic::template_instance_1()
|
||||
FullySpecifiedType genTy = DeprecatedGenTemplateInstance::instantiate(templId, decl, control);
|
||||
|
||||
Overview oo;
|
||||
oo.setShowReturnTypes(true);
|
||||
oo.showReturnTypes = true;
|
||||
|
||||
const QString genDecl = oo.prettyType(genTy);
|
||||
QCOMPARE(genDecl, QString::fromLatin1("void (const int &)"));
|
||||
|
||||
@@ -208,7 +208,7 @@ void tst_TypePrettyPrinter::basic()
|
||||
QFETCH(QString, result);
|
||||
|
||||
Overview o;
|
||||
o.setShowReturnTypes(true);
|
||||
o.showReturnTypes = true;
|
||||
TypePrettyPrinter pp(&o);
|
||||
QCOMPARE(pp(type, name), result);
|
||||
}
|
||||
|
||||
@@ -188,9 +188,9 @@ public:
|
||||
SymbolDump(TranslationUnit *unit)
|
||||
: translationUnit(unit)
|
||||
{
|
||||
o.setShowArgumentNames(true);
|
||||
o.setShowFunctionSignatures(true);
|
||||
o.setShowReturnTypes(true);
|
||||
o.showArgumentNames = true;
|
||||
o.showFunctionSignatures = true;
|
||||
o.showReturnTypes = true;
|
||||
}
|
||||
|
||||
void operator()(Symbol *s) {
|
||||
|
||||
Reference in New Issue
Block a user