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

Detect QStringLiteral("") anti-pattern

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • Qt Creator 3.2.0-beta1
    • C/C++/Obj-C++ Support
    • None

    Description

      Qt Creator could warn the user about some anti-patterns when it comes to QStringLiteral (see also https://blog.qt.io/blog/2014/06/13/qt-weekly-13-qstringliteral), most notably:

      // Prefer QString() instead
      QStringLiteral("");
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            kkohne Kai Köhne
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes