forked from qt-creator/qt-creator
		
	C++: Get rid of {Name,Type}::isEqualTo()
...since it's superseded by the class Matcher. For consistency, rename FullySpecifiedType::isEqualTo() to match(). Change-Id: I07640f9218d814e0350265de45f05929e5d595a9 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		@@ -643,9 +643,9 @@ bool ResolveExpression::maybeValidPrototype(Function *funTy, unsigned actualArgu
 | 
			
		||||
 | 
			
		||||
bool ResolveExpression::implicitConversion(const FullySpecifiedType &sourceTy, const FullySpecifiedType &targetTy) const
 | 
			
		||||
{
 | 
			
		||||
    if (sourceTy.isEqualTo(targetTy))
 | 
			
		||||
    if (sourceTy.match(targetTy))
 | 
			
		||||
        return true;
 | 
			
		||||
    else if (sourceTy.simplified().isEqualTo(targetTy.simplified()))
 | 
			
		||||
    else if (sourceTy.simplified().match(targetTy.simplified()))
 | 
			
		||||
        return true;
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
@@ -963,7 +963,7 @@ private:
 | 
			
		||||
    {
 | 
			
		||||
        if (declaration->isTypedef()) {
 | 
			
		||||
            const Identifier *identifier = declaration->name()->identifier();
 | 
			
		||||
            if (name->identifier()->isEqualTo(identifier))
 | 
			
		||||
            if (name->identifier()->match(identifier))
 | 
			
		||||
                return true;
 | 
			
		||||
        }
 | 
			
		||||
        return false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user