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

Detect QStringLiteral("") anti-pattern

XMLWordPrintable

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

      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("");
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes