Certain template methods are not reported properly
Brought to you by:
senexcanis
This tracker is written against changeset 51 version of parser.
Header file:
class Sample07Class {
private:
template <typename T> int* tFunc( int count );
};
template <typename T> int* Sample07Class::tFunc( int count ) {
if (count == 0) {
return NULL;
}
return NULL;
}
Parse and show() yields:
class Sample07Class
Inherits:
{
public
<Methods>
method name: tFunc (template <typename T > int * Sample07Class : : tFunc ( int count ) { if ( count = = 0 ) {)
returns: int
number arguments: 1
protected
private
<Methods>
method name: tFunc (template <typename T > int * tFunc ( int count ) ;)
returns: int
number arguments: 1
}
A duplicate template function is reported that is always public and non-static.
Fixed in commit 52:c0a2c2aaeee4