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

code folding in initializer lists

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 10.0.0
    • C/C++/Obj-C++ Support

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes