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

QtC misindents body of constexpr-if

    XMLWordPrintable

Details

    • 8a261c867 (master)

    Description

      Given the following snippet:

      template <typename T>
      void foo() {
          if constexpr (sizeof(T) == 0)
      }
      

      When: placing the cursor at the end of the if line and hitting return

      Then: the following line is indented 8 SP w.r..t to the if:

      Expected: 4 spaces

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              mmutz Marc Mutz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes