Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.0.0, Qt Creator 4.0.3, Qt Creator 4.1.0-rc1, Qt Creator 4.2.1
-
None
-
Windows 7 SP 1 64 bits
Description
Hi,
I am working on a quite big project using the ITK library. When handling ITK filter, for conciseness, we are often using them like that:
typedef itk::CastImageFilter<typename itk::Image<inputPixelType, ImageDimension> , ItkFilterImageType > CastFilterType;
typename CastFilterType::Pointer castFilter = CastFilterType::New();
So we use a typedef for the type before using it. We have some classes with many typedef, and with clang code model, this is totally not usable. Qt Creator is very slow, lag, freeze. After some tests, it seems that removing the typedef and using auto too keep the conciseness of the code help the performance:
auto castFilter = itk::CastImageFilter<typename itk::Image<inputPixelType, ImageDimension> , ItkFilterImageType >::New();
But with such construction, Qt Creator is crashing a lot. Sometime it is when manipulating the variable typed with auto, sometime this is just when starting Qt Creator with the file having such auto usage open. In summary, this is too not usable.