summaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-06-01 21:31:36 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-12 12:10:46 +0200
commit77c0f9868e947f5a117d94d9e63a0fbbea9acf9a (patch)
treec5cc4addf176f93d84d2087bc35da9483c0a815a /CONTRIBUTING.md
parentCONTRIBUTING: Fix some examples, escape underscores (diff)
downloadyuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar.gz
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar.bz2
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar.lz
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar.xz
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.tar.zst
yuzu-77c0f9868e947f5a117d94d9e63a0fbbea9acf9a.zip
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md19
1 files changed, 7 insertions, 12 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 49742e4e0..cb1067c92 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,5 +1,4 @@
# Contributing
-
Citra is a brand new project, so we have a great opportunity to keep things clean and well organized early on. As such, coding style is very important when making commits. They aren't very strict rules since we want to be flexible and we understand that under certain circumstances some of them can be counterproductive. Just try to follow as many of them as possible:
### General Rules
@@ -11,18 +10,16 @@ Citra is a brand new project, so we have a great opportunity to keep things clea
### Naming Rules
* Functions
- * CamelCase, `_` may also be used for clarity (e.g. `ARM_InitCore`)
+ * CamelCase, "_" may also be used for clarity (e.g. ARM_InitCore)
* Variables
- * lower\_case\_underscored
- * Prefix `g_` if global
- * Prefix `_` if internal
- * Prefix `__` if ultra internal
+ * lower_case_underscored
+ * Prefix "g_" if global
* Classes
- * CamelCase, `_` may also be used for clarity (e.g. `OGL_VideoInterface`)
+ * CamelCase, "_" may also be used for clarity (e.g. OGL_VideoInterface)
* Files/Folders
- * lower\_case\_underscored
+ * lower_case_underscored
* Namespaces
- * CamelCase, `_` may also be used for clarity (e.g. `ARM_InitCore`)
+ * CamelCase, "_" may also be used for clarity (e.g. ARM_InitCore)
### Indentation/Whitespace Style
Follow the indentation/whitespace style shown below. Do not use tabs, use 4-spaces instead.
@@ -88,15 +85,13 @@ void FooBar() {
case 3:
DoSomething(var);
return;
- // Always break, even after a return
- break;
default:
// Yes, even break for the last case
break;
}
- std::string
+ std::vector
you_can_declare,
a_few,
variables,