QtCreator may hang in function symbolOccurrencesInText() of cpptoolsreuse.cpp
In the following code:
// Test Func
int TestFunc(int, void*);
int main()
{
return TestFunc(0, nullptr);
}
int TestFunc(int value, void* ptr)
{
return 0;
}
Rename "value" to "param" will hang QtCreator.
- doule click "value"
- 'Delete' it
- type in "param"
In this case, symbolOccurrencesInText() loop forever because "symbolName" is empty.
It' ok if the comment "// Test Func" was absent.