summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorGravatar LittleWhite2015-08-16 17:36:35 +0200
committerGravatar LittleWhite2015-08-16 21:20:04 +0200
commit44ef68fb4873b49af880a164f0619d4a35860875 (patch)
tree23d4c766cfe2ddf2267276d75220a8fb8678361e /CONTRIBUTING.md
parentBuild fix for Debug configurations. (diff)
downloadyuzu-44ef68fb4873b49af880a164f0619d4a35860875.tar.gz
yuzu-44ef68fb4873b49af880a164f0619d4a35860875.tar.xz
yuzu-44ef68fb4873b49af880a164f0619d4a35860875.zip
Add coding style about includes
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f2dbdf1a4..28b8b4031 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
25* 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. 25* 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.
26 26
27```cpp 27```cpp
28// Includes should be sorted lexicographically
29// STD includes first
30#include <map>
31#include <memory>
32
33// then, library includes
34#include <nihstro/shared_binary.h>
35
36// finally, citra includes
37#include "common/math_util.h"
38#include "common/vector_math.h"
39
40// each major module is separated
41#include "video_core/pica.h"
42#include "video_core/video_core.h"
43
28namespace Example { 44namespace Example {
29 45
30// Namespace contents are not indented 46// Namespace contents are not indented