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

Clang: Editor does not replace "." operator for pointers

    XMLWordPrintable

Details

    Description

      1. Have these two lines in a cpp-file:
            QApplication *p;
            p
        
      2. After the second "p", type a dot (".").
        With Creator's internal code model, the dot will immediately be replaced by an arrow (->). When using the clang code model, this does not work.

      The editors should have the same behavior, no matter which code model is working in the background.

      Found using Squish test tst_memberoperator.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-11581
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              rlohning Robert Löhning
              Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes