Merge pull request #5201 from sipa/order
Remove file and class order guidelines
This commit is contained in:
commit
c969096070
1 changed files with 0 additions and 14 deletions
|
@ -12,20 +12,6 @@ gradually.
|
||||||
- No indentation for public/protected/private or for namespaces.
|
- No indentation for public/protected/private or for namespaces.
|
||||||
- No extra spaces inside parenthesis; don't do ( this )
|
- No extra spaces inside parenthesis; don't do ( this )
|
||||||
- No space after function names; one space after if, for and while.
|
- No space after function names; one space after if, for and while.
|
||||||
- Includes need to be ordered alphabetically, separate own and foreign headers with a new-line (example key.cpp):
|
|
||||||
```c++
|
|
||||||
#include "key.h"
|
|
||||||
|
|
||||||
#include "crypto/sha2.h"
|
|
||||||
#include "util.h"
|
|
||||||
|
|
||||||
#include <openssl/foo.h>
|
|
||||||
```
|
|
||||||
- Class or struct keywords in header files need to be ordered alphabetically:
|
|
||||||
```c++
|
|
||||||
class CAlpha;
|
|
||||||
class CBeta;
|
|
||||||
```
|
|
||||||
|
|
||||||
Block style example:
|
Block style example:
|
||||||
```c++
|
```c++
|
||||||
|
|
Loading…
Reference in a new issue