Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30086

QtCreator hang in symbolOccurrencesInText()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 12.0.1
    • Editors
    • Windows

      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.

      1. doule click "value"
      2. 'Delete' it
      3. type in "param"

      In this case, symbolOccurrencesInText() loop forever because "symbolName" is empty.

      It' ok if the comment "// Test Func" was absent.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            wei.liang illigle wei
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes