forked from qt-creator/qt-creator
		
	Fixed completion when a typedef symbol is used as class name
For example std::string, which is a typedef of std::basic_string. Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
This commit is contained in:
		
				
					committed by
					
						 Thorbjørn Lindeijer
						Thorbjørn Lindeijer
					
				
			
			
				
	
			
			
			
						parent
						
							9839dea6bc
						
					
				
				
					commit
					4bbb9219e9
				
			| @@ -645,6 +645,7 @@ ResolveExpression::resolveBaseExpression(const QList<Result> &baseResults, int a | ||||
|             foreach (Symbol *typedefCandidate, typedefCandidates) { | ||||
|                 if (typedefCandidate->isTypedef() && typedefCandidate->type()->isNamedType()) { | ||||
|                     ty = typedefCandidate->type(); | ||||
|                     lastVisibleSymbol = typedefCandidate; | ||||
|                     break; | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user