Declaring one name per declaration.

This commit is contained in:
Dima 2016-01-06 22:31:13 -08:00
parent 46f38a7917
commit 6a39167b86

View File

@ -7880,9 +7880,10 @@ The *always initialize* rule is a style rule aimed to improve maintainability as
Here is an example that is often considered to demonstrate the need for a more relaxed rule for initialization
widget i, j; // "widget" a type that's expensive to initialize, possibly a large POD
widget i; // "widget" a type that's expensive to initialize, possibly a large POD
widget j;
if (cond) { // bad: i and j are initialized "late"
if (cond) { // bad: i and j are initialized "late"
i = f1();
j = f2();
}