From 33154a35c403ea5f452f80f3464be24d97e545e0 Mon Sep 17 00:00:00 2001 From: adrian <adrian@8c4709b5-6ec9-48aa-a5cd-a96041d1645a> Date: Thu, 7 Jun 2012 17:41:08 +0000 Subject: [PATCH] Tiny updates in Coding-Style guideline. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1317 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- doc/coding-style.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/coding-style.txt b/doc/coding-style.txt index 8db1b6bf..2016d616 100644 --- a/doc/coding-style.txt +++ b/doc/coding-style.txt @@ -8,7 +8,7 @@ For Python code, try to stick to <http://www.python.org/dev/peps/pep-0008>. Especially use 4 spaces per indentation level, and don't mix tabs and spaces for indentation. -The following style rules apply to C/C++ code: +The following style rules apply to C/C++/AspectC++ code: - Language (comments, SVN commit messages, "temporary" stuff): English (without exception) @@ -56,7 +56,7 @@ The following style rules apply to C/C++ code: class Foo { public: <TAB>void doSomething(); - } + }; Similarly (and for the same reason) for namespaces and switch/case statements: switch (foo) { @@ -69,14 +69,14 @@ The following style rules apply to C/C++ code: if (something) { <TAB>... } - * Function definitions are an exception to this ('{' in a new line): + * Method/Function definitions are an exception to this ('{' in a new line): Definition: | Declaration: void myFunction(int i) | void myFunction(int i); { | <TAB>... | } | - * Control structure tokens ("if", "try", ...) are followed by a single - space for better disambiguation from function definitions: + * Control structure tokens ("if", "try", for, ...) are followed by a + single space for better disambiguation from function definitions: if (...) { <TAB>... } else if (...) { -- GitLab