On Mon, Mar 28, 2016 at 3:31 PM, Masatoshi Kimura <vyv03...@nifty.ne.jp>
wrote:

> On 2016/03/29 7:18, Jared Wein wrote:
> > We need to be careful with shuffling around #includes as there can be
> > ordering dependencies that are not obvious at a glance.
>
> Especially, #include "Foo.h" should be put first in Foo.cpp regardless
> of the alphabetical order to avoid introducing such dependencies.
> (If Foo.h requires other headers, Foo.h should include them.)
> The guideline should say about that.


It already does:



   1. The main header: Foo.h in Foo.cpp
   2. Standard library includes: #include <map>
   3. Mozilla includes: #include "mozilla/dom/Element.h


-Ekr



> _______________________________________________

dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to