-
Notifications
You must be signed in to change notification settings - Fork 168
/
CPPLINT.cfg
72 lines (66 loc) · 2.49 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
61
62
63
64
65
66
67
68
69
70
71
72
linelength=1000
# lax
filter=-build/include_subdir,-readability/casting,-build/include,-runtime/printf,-runtime/int,-runtime/arrays,-readability/fn_size,-runtime/threadsafe_fn,-readability/braces,-whitespace/braces,-build/header_guard,-whitespace/semicolon,-legal/copyright,-runtime/references,-runtime/casting
# strict
# filter=-build/include_subdir,-readability/casting,-build/include
# messages we should turn back on soon
# ------------------------------------
#
# [runtime/printf]
# example: Never use sprintf. Use snprintf instead.
#
# [runtime/int]
# example: Use int16/int64/etc, rather than the C type long
#
# [runtime/arrays]
# example: Do not use variable-length arrays. Use an appropriately named
# ('k' followed by CamelCase) compile-time constant for the size.
#
# [readability/fn_size]
# example: Small and focused functions are preferred: t2Read() has 506
# non-comment lines (error triggered by exceeding 500 lines).
#
# [runtime/threadsafe_fn]
# example: Consider using strtok_r(...) instead of strtok(...) for
# improved thread safety.
#
# [readability/braces]
# example: If an else has a brace on one side, it should have it on both
#
# [whitespace/braces]
# example: { should almost always be at the end of the previous line
#
# [build/header_guard]
# example: ifndef header guard has wrong style,
# please use: C_SPOT_SOURCE_HDMX_H_
#
# [whitespace/semicolon]
# example: Line contains only semicolon. If this should be an empty
# statement, use {} instead.
#
# [legal/copyright]
# example: No copyright message found. You should have a line:
# "Copyright [year] <Copyright Owner>"
#
# [runtime/references]
# example: Is this a non-const reference? If so, make const or
# use a pointer: debug & HOT_DB_MAP
#
# [runtime/casting]
# example: Are you taking an address of a cast? This is dangerous: could
# be a temp var. Take the address before doing the cast, rather
# than after
# messages we can leave off
# -------------------------
#
# [build/include_subdir]
# example: Include the directory when naming .h files
#
# [readability/casting]
# example: Using C-style cast. Use reinterpret_cast<char *>(...) instead
# messages that seem to give spurious results
# -------------------------------------------
#
# [build/include]
# example: c/spot/source/GPOS.c should include its header
# file c/spot/source/GPOS.h