forked from qt-creator/qt-creator
		
	Get rid of the #warning directives.
This commit is contained in:
		@@ -283,7 +283,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
 | 
			
		||||
        } else if (Function *fun = scope->asFunction()) {
 | 
			
		||||
            bindings()->lookupInScope(name, fun, &candidates, /*templateId = */ 0, /*binding=*/ 0);
 | 
			
		||||
 | 
			
		||||
#warning robe: lookup in template parameters
 | 
			
		||||
            // ### port me
 | 
			
		||||
#if 0
 | 
			
		||||
            for (TemplateParameters *it = fun->templateParameters(); it && candidates.isEmpty(); it = it->previous())
 | 
			
		||||
                bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
 | 
			
		||||
@@ -310,7 +310,7 @@ QList<LookupItem> LookupContext::lookup(const Name *name, Scope *scope) const
 | 
			
		||||
                break; // it's a formal argument.
 | 
			
		||||
 | 
			
		||||
        } else if (Class *klass = scope->asClass()) {
 | 
			
		||||
#warning robe: lookup in template parameters
 | 
			
		||||
            // ### port me
 | 
			
		||||
#if 0
 | 
			
		||||
            for (TemplateParameters *it = klass->templateParameters(); it && candidates.isEmpty(); it = it->previous())
 | 
			
		||||
                bindings()->lookupInScope(name, it->scope(), &candidates, /* templateId = */ 0, /*binding=*/ 0);
 | 
			
		||||
 
 | 
			
		||||
@@ -50,8 +50,6 @@ using namespace CPlusPlus;
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
 | 
			
		||||
const bool debug = ! qgetenv("CPLUSPLUS_DEBUG").isEmpty();
 | 
			
		||||
 | 
			
		||||
template <typename _Tp>
 | 
			
		||||
static QList<_Tp> removeDuplicates(const QList<_Tp> &results)
 | 
			
		||||
{
 | 
			
		||||
@@ -549,8 +547,11 @@ bool ResolveExpression::visit(ArrayAccessAST *ast)
 | 
			
		||||
 | 
			
		||||
QList<LookupItem> ResolveExpression::getMembers(ClassOrNamespace *binding, const Name *memberName) const
 | 
			
		||||
{
 | 
			
		||||
    Q_UNUSED(binding);
 | 
			
		||||
    Q_UNUSED(memberName);
 | 
			
		||||
 | 
			
		||||
    // ### port me
 | 
			
		||||
    QList<LookupItem> members;
 | 
			
		||||
#warning robe: enable template instantiation
 | 
			
		||||
#if 0
 | 
			
		||||
    const QList<LookupItem> originalMembers = binding->find(memberName);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user