summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/30144-Issue_3916.cpp
blob: aa1d0737aa9b95afd6139dc0c2df4dd325d6cea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <string>

using TEnglishString = std::string;

class CComCommandInfo
{
public:
CComCommandInfo( TEnglishString, TEnglishString );
};

template< typename T >
class CGenericCommandEx
{
public:
CGenericCommandEx( T );
};


template< typename T >
void Test( TEnglishString commandName_, TEnglishString commandDescription_, T functor_ )
{
        CComCommandInfo cmdInfo( std::forward< TEnglishString >( commandName_ ),
                                 std::forward< TEnglishString >( commandDescription_ ) );

        auto* pCommand =
                new CGenericCommandEx(
                        std::forward< decltype( functor_ ) >( functor_ ) ); // <--- Note the extra spaces added here
}