forked from qt-creator/qt-creator
		
	C++ editor: support nested class of enclosing template
Fixing: * highlighting * tooltips * find usage * selecting Task-number: QTCREATORBUG-8245 Change-Id: I6e900799e43126706125b7e424567fca2b2c223e Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
		
				
					committed by
					
						
						Nikolai Kosjar
					
				
			
			
				
	
			
			
			
						parent
						
							bc137f36a7
						
					
				
				
					commit
					23844410fd
				
			@@ -260,6 +260,8 @@ void FindUsages::checkExpression(unsigned startToken, unsigned endToken, Scope *
 | 
			
		||||
    if (! scope)
 | 
			
		||||
        scope = _currentScope;
 | 
			
		||||
 | 
			
		||||
    // make possible to instantiate templates
 | 
			
		||||
    typeofExpression.setExpandTemplates(true);
 | 
			
		||||
    const QList<LookupItem> results = typeofExpression(expression, scope, TypeOfExpression::Preprocess);
 | 
			
		||||
    reportResult(endToken, results);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -281,7 +281,11 @@ public:
 | 
			
		||||
    static const Name *minimalName(Symbol *symbol, ClassOrNamespace *target, Control *control);
 | 
			
		||||
 | 
			
		||||
    void setExpandTemplates(bool expandTemplates)
 | 
			
		||||
    { m_expandTemplates = expandTemplates; }
 | 
			
		||||
    {
 | 
			
		||||
        if (_bindings)
 | 
			
		||||
            _bindings->setExpandTemplates(expandTemplates);
 | 
			
		||||
        m_expandTemplates = expandTemplates;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    // The current expression.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user