-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cppstyle
27 lines (27 loc) · 898 Bytes
/
.cppstyle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
naming:
classes: ^([A-Z][a-z0-9]*)+$
variables: ^([a-z0-9]+)(_[a-z0-9]+)*$
members:
private: ^([a-z0-9]+)(_[a-z0-9]+)*_$
protected: ^([a-z0-9]+)(_[a-z0-9]+)*_$
public: ^([a-z0-9]+)(_[a-z0-9]+)*$
functions: ^([a-z0-9]+)([A-Z][a-z0-9]*)*$
methods: ^([a-z0-9]+)([A-Z][a-z0-9]*)*$
order:
access_specifier_required: True
access_specifier:
- "public"
- "protected"
- "private"
indent:
function: 2
method: 2
struct: 2
class:
access_modifier: 0
default: 2
comments:
class: # could also be: access_specifier, field, function, method, struct, variable
brief: "^((?:.|\n){0,80})$" # or any other comment group starting with '@'
default: "^((?:.|\n)+)$" # comment group without '@'
parameter: "^((?:.|\n)+)$" # parent needs comment starting with '@param name' for each parameter