aboutsummaryrefslogblamecommitdiffstats
path: root/CODINGSTYLE
blob: 3ac6e3b77af55303b3fb4ff2daaa109ec79a83b3 (plain) (tree)


















































                                                     
recommended:
	tab = 5
	shiftwidth = 5

required:
	use tab character for indents

	for (init; condition; increment) {
		statement;
	}

	switch (variable) {
	case 1:
		statement;
		break;
	case 2:
		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;