forked from qt-creator/qt-creator
		
	clangbackend: Categorize non-const pointer arguments as output arguments
Fixes: QTCREATORBUG-24550 Change-Id: Iac4f3b133a632d7272bfe4253f8a0740e51b0952 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		@@ -1326,7 +1326,7 @@ TEST_F(TokenProcessor, NonConstPointerArgument)
 | 
			
		||||
    infos[1];
 | 
			
		||||
 | 
			
		||||
    ASSERT_THAT(infos[2],
 | 
			
		||||
                HasOnlyType(HighlightingType::LocalVariable));
 | 
			
		||||
                HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_F(TokenProcessor, PointerToConstArgument)
 | 
			
		||||
@@ -1346,7 +1346,7 @@ TEST_F(TokenProcessor, ConstPointerArgument)
 | 
			
		||||
    infos[1];
 | 
			
		||||
 | 
			
		||||
    ASSERT_THAT(infos[2],
 | 
			
		||||
                HasOnlyType(HighlightingType::LocalVariable));
 | 
			
		||||
                HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_F(TokenProcessor, NonConstPointerGetterAsArgument)
 | 
			
		||||
@@ -1400,7 +1400,7 @@ TEST_F(TokenProcessor, NonConstPointerArgumentAsExpression)
 | 
			
		||||
    infos[1];
 | 
			
		||||
 | 
			
		||||
    ASSERT_THAT(infos[3],
 | 
			
		||||
                HasOnlyType(HighlightingType::LocalVariable));
 | 
			
		||||
                HasTwoTypes(HighlightingType::LocalVariable, HighlightingType::OutputArgument));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST_F(TokenProcessor, NonConstPointerArgumentAsInstanceWithMember)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user