forked from qt-creator/qt-creator
		
	Recursive definition of CPlusPlus::QualifiedNameId.
Done-with: Erik Verbruggen
This commit is contained in:
		@@ -200,7 +200,7 @@ protected:
 | 
			
		||||
    { _item = newCompletionItem(name); }
 | 
			
		||||
 | 
			
		||||
    virtual void visit(const QualifiedNameId *name)
 | 
			
		||||
    { _item = newCompletionItem(name->unqualifiedNameId()); }
 | 
			
		||||
    { _item = newCompletionItem(name->name()); }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct CompleteFunctionDeclaration
 | 
			
		||||
 
 | 
			
		||||
@@ -96,10 +96,9 @@ bool SearchSymbols::visit(Function *symbol)
 | 
			
		||||
 | 
			
		||||
    QString extraScope;
 | 
			
		||||
    if (const Name *name = symbol->name()) {
 | 
			
		||||
        if (const QualifiedNameId *nameId = name->asQualifiedNameId()) {
 | 
			
		||||
            if (nameId->nameCount() > 1) {
 | 
			
		||||
                extraScope = overview.prettyName(nameId->nameAt(nameId->nameCount() - 2));
 | 
			
		||||
            }
 | 
			
		||||
        if (const QualifiedNameId *q = name->asQualifiedNameId()) {
 | 
			
		||||
            if (q->base())
 | 
			
		||||
                extraScope = overview.prettyName(q->base());
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    QString fullScope = _scope;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user