summaryrefslogtreecommitdiff
path: root/CODINGSTYLE
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:49 -0400
commit8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (patch)
treeda38e2c1979148dbd3b0c7b87f930746f5ba7f44 /CODINGSTYLE
parent8d3fc864d094eeadc721f8e93436b37a5fab173e (diff)
Imported Upstream version 1.5.7
Diffstat (limited to 'CODINGSTYLE')
-rw-r--r--CODINGSTYLE54
1 files changed, 54 insertions, 0 deletions
diff --git a/CODINGSTYLE b/CODINGSTYLE
new file mode 100644
index 0000000..63a9bf9
--- /dev/null
+++ b/CODINGSTYLE
@@ -0,0 +1,54 @@
+recommended:
+ tab = 5
+ shiftwidth = 5
+
+required:
+ use tab character for indents
+
+ for (init; condition; increment) {
+ statement;
+ }
+
+ switch (variable) {
+ case 1:
+ statement;
+ statement;
+ break;
+ case 2: statement; break;
+ case 3: statement; break;
+ case 4:
+ statement;
+ break;
+ default:
+ statement;
+ break;
+ }
+
+ if (condition)
+ statement;
+ else statement;
+
+ if (condition) {
+ statement;
+ statement;
+ }
+ else {
+ statement;
+ statement;
+ }
+
+ class ClassDef {
+ private:
+ protected:
+ void method(int param1, char param2);
+ public:
+ ClassDef();
+ };
+
+ ClassDef classDef;
+ classDef.method(1, '2');
+
+ var1 = 1;
+ variable2 = 2;
+ var3 = 3;
+ variable4 = 4;