forked from qt-creator/qt-creator
		
	CppEditor: Respect whitespace in operator names for more quick fixes
* Affected quick fixes: InsertDefFromDecl, MoveFuncDefOutside * Fix also reformating pointer declaration of operator functions for qualified name ids Change-Id: I6a7578f496221557d103f5fdbb5dacc9540ee779 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		@@ -105,7 +105,9 @@ void NamePrettyPrinter::visit(const DestructorNameId *name)
 | 
			
		||||
 | 
			
		||||
void NamePrettyPrinter::visit(const OperatorNameId *name)
 | 
			
		||||
{
 | 
			
		||||
    _name += QLatin1String("operator ");
 | 
			
		||||
    _name += QLatin1String("operator");
 | 
			
		||||
    if (_overview->includeWhiteSpaceInOperatorName)
 | 
			
		||||
        _name += QLatin1Char(' ');
 | 
			
		||||
    switch (name->kind()) { // ### i should probably do this in OperatorNameId
 | 
			
		||||
    case OperatorNameId::InvalidOp:
 | 
			
		||||
        _name += QLatin1String("<invalid>");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user