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

Clang code model underlines valid code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 3.1.0-rc1
    • C/C++/Obj-C++ Support
    • Windows 7 64 bit
      Qt 5.2.1

    Description

      1. Enable the clang code model.
      2. In a source file, include QDebug:
        #include <QDebug>
        
      3. In some function in that file, add the line:
        qDebug() << "Failed";
        

        It will become underlined although the code is valid and can be compiled. Hovering it shows the tooltip:

      4. Close and reopen the file.
        The underlines are gone.
      5. Edit something in the file.
        The underlines are back.

      The code model should not underline valid code. If it finds a real problem, the underline should not be gone after reopening a file.

      Creator's built-in code model does not complain about this line.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            rlohning Robert Löhning
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes