[go: up one dir, main page]

Skip to content

In C++ template "greater than" and "less than" characters are detected as operators

Hello,

I updated to 3.6.8 and I get the following behavour with -p option and this cpp module:

#ifndef ECU_COMMUNICATION_H
#define ECU_COMMUNICATION_H

#include <QObject>

class Communication: public QObject
{
    void onPingReceived(quint8 counter, QSharedPointer<PingReturnStruct> params);
};
#endif // ECU_COMMUNICATION_H

the function is converted from:

void onPingReceived(quint8 counter, QSharedPointer<PingReturnStruct> params);

to:

void onPingReceived(quint8 counter, QSharedPointer < PingReturnStruct > params);

It seems that "<" and ">" of the template are interpreted as operator and aStyle inserts space characters before and after.

Have a nice day. Julien

Edited by Julien Devillers