-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle-guide.txt
More file actions
70 lines (55 loc) · 1.57 KB
/
style-guide.txt
File metadata and controls
70 lines (55 loc) · 1.57 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#include <boost/headers/go/first>
#include <boost/in_alphabetical/order>
#include <then_standard_headers>
#include <in_alphabetical_order>
#include "then/any/detail/headers"
#include "in/alphabetical/order"
#include "then/any/remaining/headers/in"
// (you'll never guess)
#include "alphabetical/order/duh"
#define NAMESPACE_NAMES_THEN_MACRO_NAME(pMacroNames) ARE_ALL_CAPS
namespace lowercase_identifers {
class type_names_separated_by_underscores {
public:
void because_underscores_are() const
{
auto mostLikeSpaces = 0u; // but local names are condensed
auto foo = false;
auto bar = cmplx_type {};
while (!foo)
single::statements_do_not(need, braces);
for (size_t i = 0; i < 100; ++i) {
but::multiple();
statements::do();
}
}
const complex_type& value() const
{
return value;
}
void value(const complex_type& pValue)
{
value = pValue ;
}
void run()
{
using super_namespace;
// names from another namespace should have at least one explicite namespace
// name and scope resolution operator for qualified name lookup
names::from_another_namespace();
}
protected:
// the more public it is, the more important it is,
// so order: public on top, then protected then private
template <typename template, typename parameters>
void are_typeset_like_typenames()
{
// gman was here
}
private:
complex_type value;
// do not use single charaters as variable names
unsigned long xx;
};
}