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

code folding in initializer lists

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 10.0.0
    • C/C++/Obj-C++ Support
    • None

    Description

      compare the code folding for the initialiser list in the constructor:

      struct foo
      {
          foo();
          int a, b, c, d;
      };
      
      foo::foo()
          : a {
              0,
          }
          , b {
              0
          }
          , c { 0 }
          , d (
              0
          )
      {
          // yada
      }
      

      observations (compare screenshot)

      • multi-line {} initialisations allow to be folded
      • single-line {} cannot be folded
      • single-line () cannot be folded, either

      i understand where it is coming from, but it's a bit inconsistent.

      that said, it would be quite a useful feature to be able to code-fold the whole initializer list in the constructor, either independently in sync with the function body of the constructor, which is currently not possible

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes