Member variable alignment
已回答

How can I align when declaring member variables? ('T' is template argument)
I checked the option Code Style | C/C++ | Wrapping and Braces | Variable groups | Align in columns but it isn't applied in this case.

And some spaces are made between '}' and 'heap;' after reformatting. I think it is because of Variable groups | Align in columns option but this is strange. How to I fix this?
请先登录再写评论。
Hello!
>I checked the option Code Style | C/C++ | Wrapping and Braces | Variable groups | Align in columns but it isn't applied in this case.
On my side in CLion 2018.3.2 Code | Reformat Code aligns members if this option is enabled:
And also I didn't manage to reproduce the second issue. Does it happen only when Variable groups | Align in columns is enabled?
Could you please provide code samples and screencasts illustrating the issues?
The second issue is, yes. If I disable that option, the issue is disappeared.
And the first issue isn't reproduced now...I think it was a temporary phenomenon.
typedef int HData;
typedef int(* PriorityComp)(HData, HData);
typedef struct Heap {
HData heapArr[HEAP_LEN];
PriorityComp comp;
int numOfData;
} heap;
Thank you! I was able to reproduce it and created https://youtrack.jetbrains.com/issue/CPP-15038
Feel free to comment or upvote in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.