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

Wierd auto-added magic in raw string literals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.0, Qt Creator 14.0 (master branch)
    • Editors
    • None

    Description

       

      static const char *test = R"(
          assert(type(func) == "function", "type error :: expected func")
      )"; 

      When setting the text cursor right after the closing parenthesis ( expected func") ) and pressing the return key, the following is the result:

      static const char *test = R"(
          assert(type(func) == "function", "type error :: expected func")"
      "
      )";  

      Since its inside of a string, nothing should be added.

       

      Attachments

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

        Activity

          People

            davschul David Schulz
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes