问题
I have Qt Creator project. It uses boost and Point Cloud library. When I edit file that contains includes from these libraries, Qt Creator hangs about 30 seconds after each code channge (line added, variable type changed etc.). TaskManager shows 100% CPU on my two-core procesor.
Please note: it is not during parsing or indexing, i.e. no green progress bar appears.
Qt Creator is 2.8.0.
回答1:
The only way I found is to disable boost and Eigen header parsing. To do it
- Exclude them from
HEADERSsection of.profile Add these lines:
QMAKE_CXXFLAGS += /I ../3rdparty/eigen /I ../3rdparty/boost /DCOMPILE_TIMENow Qt Creator will show you
Unknow filewarning, but compilation will be OK.
来源:https://stackoverflow.com/questions/19078732/qt-creator-100-cpu-during-code-edit