forked from qt-creator/qt-creator
		
	It is a first step and now a database is generated if you start QtCreator. Some code is now shared with the PchManager which can be improved in the future. Change-Id: Ic267fe7960f6c455d91832859a673ce98f269aa2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
		
			
				
	
	
		
			37 lines
		
	
	
		
			506 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			506 B
		
	
	
	
		
			C++
		
	
	
	
	
	
void function();
 | 
						|
 | 
						|
void function()
 | 
						|
{
 | 
						|
    int x;
 | 
						|
    x = 20;
 | 
						|
}
 | 
						|
 | 
						|
template <typename T>
 | 
						|
T templateFunction(T t)
 | 
						|
{
 | 
						|
    return t;
 | 
						|
}
 | 
						|
 | 
						|
template <>
 | 
						|
int templateFunction(int t)
 | 
						|
{
 | 
						|
    return t;
 | 
						|
}
 | 
						|
 | 
						|
extern template double templateFunction<double>(double);
 | 
						|
template double templateFunction<double>(double);
 | 
						|
 | 
						|
template<typename T>
 | 
						|
using TemplateFunctionType = T(&)(T);
 | 
						|
 | 
						|
 | 
						|
TemplateFunctionType<int> aliasToTemplateFunction = templateFunction<int>;
 | 
						|
 | 
						|
void f()
 | 
						|
{
 | 
						|
    aliasToTemplateFunction(1);
 | 
						|
}
 | 
						|
 | 
						|
void f(int);
 | 
						|
void f(double);
 |