Repository navigation
Expand file tree
/
Copy pathCPPLINT.cfg
More file actions
45 lines (32 loc) · 1.44 KB
/
Copy pathCPPLINT.cfg
File metadata and controls
45 lines (32 loc) · 1.44 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
# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com>
# This is the toplevel CPPLINT.cfg file
set noparent
# We give a limit to clang-format of 80, but we allow 100 here for cases where
# it really is more readable to have a longer line
linelength=100
# Exceptions to Google style
# This rule bans certain C++ standard library features, which have their own
# alternatives in the Chromium codebase, doesn't apply to us.
filter=-build/c++11
# We have a special order for include files, see "Header inclusion order" in
# CPP_Style_Guide.md.
filter=-build/include_order
# This is covered by the IWYU tool, which cpplint sometimes contradicts.
filter=-build/include_what_you_use
# https://github.com/cpplint/cpplint/issues/212
filter=-readability/braces:gi/private.cpp
# https://github.com/cpplint/cpplint/issues/406
filter=-readability/braces:modules/cairo-region.cpp
# https://github.com/cpplint/cpplint/issues/298
filter=-readability/nolint
# In many places the types forbidden by runtime/int are required by GLib APIs.
filter=-runtime/int
# This rule doesn't match up anymore with modern C++.
filter=-whitespace/braces
# https://github.com/cpplint/cpplint/issues/372
filter=-whitespace/indent_namespace
# These top-level folders are excluded. Note that to exclude individual files,
# they have to be listed in that folder's CPPLINT.cfg.
exclude_files=subprojects
exclude_files=_.*build