<div dir="ltr">Hi Alex<div><br></div><div>This rule (and many other rules) uses the keyword "should".</div><div>"should" is to be interpreted according to RFC2119, which means an exception can be granted when properly justified.</div><div><br></div><div>What about:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>rule x. `auto` type specifier SHOULD only be used for local variables.</div></blockquote><div><br></div><div><br></div><div>Yours, Junxiao<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 2, 2014 at 1:57 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div dir="ltr"><div>rule x. `auto` type should only be used for local variables.<br></div></div></blockquote><blockquote type="cite" style="color:rgb(80,0,80)"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Where else, potentially, it can be used?</div><br><blockquote type="cite"><div dir="ltr"></div></blockquote></div></blockquote></div></div></blockquote><blockquote type="cite"><div dir="ltr"><div>`auto` specifier can be used to declare variables at any scope: block scope, namespace scope, init statement of for loop.</div><div>The proposed rule is to forbid using `auto` specifier at namespace scope, because such usage makes the code less readable.</div></div></blockquote><div><br></div></span><div>I would avoid making such an explicit rule.  I would rather take case by case approach, where namespace-scope auto should be  generally avoided, but if it makes sense to use it, it can be used.</div></div></div></blockquote></div><br></div></div></div>