From 44ef68fb4873b49af880a164f0619d4a35860875 Mon Sep 17 00:00:00 2001 From: LittleWhite Date: Sun, 16 Aug 2015 17:36:35 +0200 Subject: [PATCH] Add coding style about includes --- CONTRIBUTING.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2dbdf1a4e..28b8b4031b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,6 +25,22 @@ Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spac * For items that are both defined and declared in two separate files, put the doc-comment only next to the associated declaration. (In a header file, usually.) Otherwise, put it next to the implementation. Never duplicate doc-comments in both places. ```cpp +// Includes should be sorted lexicographically +// STD includes first +#include +#include + +// then, library includes +#include + +// finally, citra includes +#include "common/math_util.h" +#include "common/vector_math.h" + +// each major module is separated +#include "video_core/pica.h" +#include "video_core/video_core.h" + namespace Example { // Namespace contents are not indented