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

Coding assist for dot (.) is incorrect sometimes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.0.0
    • C/C++/Obj-C++ Support
    • None
    • Kubuntu 16.04 x86_64, KDE5, Cmake 3.5.1, Clang code model.

      Sometimes, when I type in code in QtCreator, it mistakenly converts dot (.) to arrow (->). For example, it sometimes happens when I type floating point constants, and as a result I get something like this:

      sample_rate_multiplier(1->0f),
      

      If I try to fix the code by erasing -> and typing . instead, QtCreator gives a drop-down list of various nonsensical symbols, like macros, keywords and whatnot (see the screenshot).

        1. QtCreator_member_bug.png
          215 kB
          Andrey Semashev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            lastique Andrey Semashev
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes