<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is definitely a heuristic, and may not make sense as a default warning if some projects have the habit of splitting their class implementation into several files, but I have never encountered such a case in practice.<br>

</blockquote><div><br></div><div>Clang does this in a couple of places.</div><div><br></div><div>Due to C++'s compilation model, I think a warning for this would have too much false positives to be useful. But if it's not on by default, I see no problem having this in.</div>

</div><div><br></div>-- <br>Joćo Matos<br>