Files
qt-creator/tests/unit/unittest/data/symbolindexing_main1.cpp
Marco Bubke 3adb71d45e Clang: Add Symbol Indexing
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>
2017-09-14 13:39:55 +00:00

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);