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

Add curly braces not working properly if line starts with emit keyword

    XMLWordPrintable

Details

    • 5b3aece38738ff61bd37abaa255e55444218e772 (qt-creator/qt-creator/4.13)

    Description

      steps to reproduce:

      type following lines

      if(ret)
      emit dataChanged(index, index);

      move text cursor on dataChanged
      press alt-enter
      select Add curly braces

      actual:

      if(ret)
      emit

      { dataChanged(index, index); }

      expected:

      if(ret)

      { emit dataChanged(index, index); }

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            fanda Fanda Vacek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes