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

Strange behaviour like adding spaces or braces

    XMLWordPrintable

Details

    Description

      The clang format plugin is on saving changing the code in unwanted ways. That is going away as I disable the formatting in the settings, press "Apply" and enable full formatting again.

      void bar() {
        if (foo) <--- it adds {} around the body
         do();
      }
      
      using namespace std::literals::string_view_literals;
      void bar() {
        std::string foo;
        foo += "foo"sv; <--- id adds here a space before sv at saving. Which breaks the code.
      }
      

      Attachments

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

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes