Skip to content

Commit 7962897

Browse files
committed
Change to what seems to be agreed upon (in line with PR assimp#566)
1 parent baddcc2 commit 7962897

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

CodeConventions.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@ If you want to participate as a developer in the **Open Asset Import Library** p
77
Spacing
88
==
99

10-
* No spaces between parentheses and arguments - i.e. ```foo(bar)```, not ```foo( bar )```
11-
12-
Tabs
13-
--
14-
15-
The tab width shall be 4 spaces. Use spaces instead of tabs.
16-
17-
Class/Struct Initialization
18-
==
19-
Constructors shall use initializer lists as follows:
20-
```cpp
21-
SomeClass()
22-
: mExists(false)
23-
, mCounter()
24-
, mPtr()
25-
{}
26-
```
27-
28-
* Initializations are one-per-line
29-
* Commas go at the beginning of the line rather than the end
30-
* The order of the list must match the order of declaration in the class
31-
* Any member with a default value should leave out the optional *NULL* or *0* - e.g. ```foo()```, not ```foo(NULL)```
10+
* Use UNIX-style line endings (LF)
11+
* Remove any trailing whitespace
12+
* Expand tabs to 4 spaces

0 commit comments

Comments
 (0)