Qt5's lupdate is confused by "class" within template angle brackets
Unsolved
Qt Creator and other tools
-
Hello,
I am currently working on a translation system for ParaView, and I am struggling with a strange lupdate warning:
/home/username/paraview/Qt/Core/pqServerManagerModel.cxx:77: Ignoring definition of undeclared qualified class
This class is predefined in its header and it seems to disturb lupdate. The strange thing is that other classes like this one does not raise any warning despite it being very similar.
We tried to use Q_DECLARE_TR_FUNCTIONS to fix it but it did not work. Also, the
-silent
option does not silence warnings.Did anyone find a fix for this kind of issues ?
I use Qt 5.12, and ParaView is in C++11
Kind regards,
Nicolas
EDIT: This is related to a non-fixed bug for Qt5 found here:
template <class T> inline T pqGetItemAtIndex(const pqServerManagerModel* model, int index); class PQCORE_EXPORT pqServerManagerModel : public QObject { Q_OBJECT ... class pqInternal; pqInternal* Internal; };
lupdate detects the
class T
in the header and then is confused at the next occurence of class in the file (class pqInternal;
)