Recently someone added a file to our project which is 5.8mb, this
hangs QtCreator while parsing - its just a large float array so theres
nothing really interesting in the file.

Is there some way to get QtCreator not to parse specific files?

Note: I'll also check on having this data not be in source, but this
specific area isn't something I maintain.

... backtrace in-case its useful.

#0  0x00007fffdfc02b73 in CPlusPlus::Literal::size
(this=0x7fffd4afcc80) at ../3rdparty/cplusplus/Literals.cpp:71
#1  0x00007fffdfbf8ef9 in findOrInsertLiteral (size=16,
chars=0x37ab7f4 "2.081552535e-03f, -2.090790864e-03f,
-2.100025121e-03f, -2.109255291e-03f,\n-2.118481359e-03f,
-2.127703308e-03f, -2.136921124e-03f, -2.146134789e-03f,
-2.155344289e-03f, -2.164549607e-03f, -2.17375072"..., this=0x1f0a700)
at ../3rdparty/cplusplus/LiteralTable.h:105
#2  CPlusPlus::Control::numericLiteral (this=<optimized out>,
chars=0x37ab7f4 "2.081552535e-03f, -2.090790864e-03f,
-2.100025121e-03f, -2.109255291e-03f,\n-2.118481359e-03f,
-2.127703308e-03f, -2.136921124e-03f, -2.146134789e-03f,
-2.155344289e-03f, -2.164549607e-03f, -2.17375072"..., size=16) at
../3rdparty/cplusplus/Control.cpp:598
#3  0x00007fffdfc01dbe in CPlusPlus::Lexer::scan_helper
(this=0x7fffd9fcb570, tok=0x7fffd9fcb5c0) at
../3rdparty/cplusplus/Lexer.cpp:690
#4  0x00007fffdfc02947 in CPlusPlus::Lexer::scan (this=0x7fffd9fcb570,
tok=0x7fffd9fcb5c0) at ../3rdparty/cplusplus/Lexer.cpp:153
#5  0x00007fffdfc25b39 in operator() (tok=0x7fffd9fcb5c0,
this=0x7fffd9fcb570) at ../3rdparty/cplusplus/Lexer.h:61
#6  CPlusPlus::TranslationUnit::tokenize (this=0x1fd14a0) at
../3rdparty/cplusplus/TranslationUnit.cpp:184
#7  0x00007fffdff32265 in
CppTools::Internal::CppPreprocessor::sourceNeeded
(this=0x7fffe436f880, fileName=...,
type=CPlusPlus::Client::IncludeLocal, line=33) at
cppmodelmanager.cpp:592
#8  0x00007fffdfc68292 in CPlusPlus::Preprocessor::processInclude
(this=0x7fffe436f8c8, firstToken=0x1eae490, lastToken=<optimized out>,
acceptMacros=true) at pp-engine.cpp:1152
#9  0x00007fffdfc69a66 in CPlusPlus::Preprocessor::processDirective
(this=0x7fffe436f8c8, firstToken=0x1eae490, lastToken=0x1eae4c0) at
pp-engine.cpp:1054
#10 0x00007fffdfc6a499 in CPlusPlus::Preprocessor::preprocess
(this=0x7fffe436f8c8, fileName=<optimized out>, source=<optimized
out>, result=<optimized out>) at pp-engine.cpp:781
#11 0x00007fffdfc6a819 in CPlusPlus::Preprocessor::operator()
(this=<optimized out>, fileName=<optimized out>, source=<optimized
out>) at pp-engine.cpp:510
#12 0x00007fffdfc6a8ba in CPlusPlus::Preprocessor::operator()
(this=0x7fffe436f8c8, fileName=..., source=...) at pp-engine.cpp:501
#13 0x00007fffdff32216 in
CppTools::Internal::CppPreprocessor::sourceNeeded
(this=0x7fffe436f880, fileName=...,
type=CPlusPlus::Client::IncludeGlobal, line=0) at
cppmodelmanager.cpp:588
#14 0x00007fffdff3034a in CppTools::Internal::CppPreprocessor::run
(this=0x7fffe436f880, fileName=...) at cppmodelmanager.cpp:308
#15 0x00007fffdff360e9 in CppTools::Internal::CppModelManager::parse
(future=..., preproc=0x7fffe436f880, files=...) at
cppmodelmanager.cpp:1251
#16 0x00007fffdff4512e in
QtConcurrent::StoredInterfaceFunctionCall2<void, void
(*)(QFutureInterface<void>&, CppTools::Internal::CppPreprocessor*,
QStringList), CppTools::Internal::CppPreprocessor*, QStringList>::run
(this=0x7fffe4063f30) at ../../libs/qtconcurrent/runextensions.h:165
#17 0x00007ffff67b98f5 in ?? () from /usr/lib/libQtCore.so.4
#18 0x00007ffff67c4bc5 in ?? () from /usr/lib/libQtCore.so.4
#19 0x00007ffff653ad60 in start_thread () from /lib/libpthread.so.0
#20 0x00007ffff5d8525d in clone () from /lib/libc.so.6
#21 0x0000000000000000 in ?? ()
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to