-
Notifications
You must be signed in to change notification settings - Fork 90
/
CPPLINT.cfg
60 lines (59 loc) · 1.61 KB
/
CPPLINT.cfg
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
# filters
#
# 1. [-whitespace/braces]
# { should almost always be at the end of the previous line
#
# Allow:
# bool SocketUDP::pollin(uint32_t timeout_ms)
# {
#
# Instead of:
# bool SocketUDP::pollin(uint32_t timeout_ms) {
#
# 2. [-runtime/references]
# Is this a non-const reference? If so, make const or use a pointer
#
# Allow:
# void get_client_address(const char *&ip_addr, uint16_t &port);
#
# Instead of:
# void get_client_address(const char *&ip_addr, uint16_t *port);
#
# 3. [-whitespace/indent]
# private: should be indented +1 space
#
# 4. [-whitespace/blank_line]
# Do not leave a blank line after "private:"
#
# 3 and 4 are to allow Gazebo Sim class formatting where each
# function / method must have an access specifier.
#
#
# 5. [-whitespace/newline]
# An else should appear on the same line as the preceding }
#
# Allow:
# }
# else if (time > this->dataPtr->lastUpdateTime)
# {
#
# Instead of:
# } else if (time > this->dataPtr->lastUpdateTime) {
#
# 6. [-build/include_subdir]
# Include the directory when naming header files
#
# This prevent an error when including the plugin headers as:
# #include "GimbalSmall2dPlugin.hh"
#
# 7. [-build/c++11], [+build/c++14]
#
# This is to allow headers not approved for C++11 such as <chrono> etc.
#
# 8. [-legal/copyright]
# Do not require a copyright header in each file
#
set noparent
filter=-whitespace/braces,-runtime/references,-whitespace/indent,-whitespace/blank_line,-whitespace/newline,-build/include_subdir,-build/c++11,+build/c++14,-legal/copyright
linelength=80
root=include