README
1This is automated checker to make sure a C++ file follows Google's C++ style
2guide (https://google.github.io/styleguide/cppguide.html). As it
3heavily relies on regular expressions, cpplint.py won't catch all violations of
4the style guide and will very occasionally report a false positive. There is a
5list of things we currently don't handle very well at the top of cpplint.py,
6and we welcome patches to improve it.
7
8The linting tool takes a list of files as input. For full usage instructions,
9please see the output of:
10
11 ./cpplint.py --help
12
13Unit tests are provided in cpplint_unittest.py. This file can safely be ignored
14by end users who have downloaded this package and only want to run the lint
15tool.
16
17---
18
19cpplint.py and its corresponding unit tests are Copyright (C) 2009 Google Inc.
20
21Redistribution and use in source and binary forms, with or without
22modification, are permitted provided that the following conditions are
23met:
24
25 * Redistributions of source code must retain the above copyright
26notice, this list of conditions and the following disclaimer.
27 * Redistributions in binary form must reproduce the above
28copyright notice, this list of conditions and the following disclaimer
29in the documentation and/or other materials provided with the
30distribution.
31 * Neither the name of Google Inc. nor the names of its
32contributors may be used to endorse or promote products derived from
33this software without specific prior written permission.
34
35THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
36"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
38A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
39OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
43THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46