diff options
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3c78f18..7ae2e52 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -142,10 +142,40 @@ prefer ```const T* name``` to ```const T *name```. Don't use 'auto' as type, unless for complex iterators or very complex types. -### don't use trailing spaces +### don't use trailing whitespaces don't. +### no missing \newline at the end of file + +make sure each file has a final \n newline. + +### c++ keyword indentation: + +The keyword 'public', 'protected', 'private' should be intended 1 character +less than the methods. + +Example: +```cpp + private: + int field_; +``` + +instead of: +```cpp +private: + int field_; +``` + +### vertical space + +keep the code compact vertically. That includes shader code, too. +Use only one statement per line. + +### finally + +Make sure everything is reflected in clang-format. + ## Development Protocols ### Adding a New Visual Effect |
