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

QtC misindents body of constexpr-if

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • Qt Creator 17.0.0
    • Qt Creator 14.0.2, Qt Creator 16.0.0
    • C/C++/Obj-C++ Support
    • None
    • 8a261c867 (master)

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes