data: parse partial template specializations
* fixed: implicit template specializations will be found even if the original template definition is located in a different file (that gets included). * implemented correct extraction of template parameters, template arguments and template specialization edges. * added token locations for template parameters of partial template specializations. * graph view displays full names of template parameters and template arguments. * added test code for features
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
template <typename T, typename U>
|
||||
class TemplateTestClass
|
||||
{
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
class TemplateTestClass<int, T>
|
||||
{
|
||||
int foo;
|
||||
};
|
||||
|
||||
template<>
|
||||
class TemplateTestClass<float, float>
|
||||
{
|
||||
int foo;
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "header.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
TemplateTestClass<int, int> t2;
|
||||
// TemplateTestClass<float, float> t3;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user