I am reading company's coding guidelines, and I encountered the MISRA 8-0-1 rule, which states:An init-declarator-list or a member-declarator-list shall consist of a  single init-declarator or member-declarator respectively.No example.So, what is this rule about? Can anyone provide some example of this (bad and good)?
What is MISRA 8-0-1 rule on init-declarator-list and member-declarator-list about?
c++;coding standards
The syntax of init-declarator-lists is:init-declarator-list:       init-declarator       init-declarator-list , init-declaratorinit-declarator:       declarator initializerSo it seems they are saying a init-declarator-list should contain only 1 init-declarator at a time.so instead of int a,b;they wantint a;int b;(although they could be talking about initialisation fo the variable too, ie int a = 0; and not int a = 0, b = 0; even they do not talk about initalizers only init-declarators)my opinion: meh. This is why coding standards are poop.