summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3916.cpp
blob: 40944d8b2fa65cc84b33f418e6130004eae65edf (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
}