Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 10.0.0
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