Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Cpplint

From Wikipedia, the free encyclopedia
Open source lint-like tool developed by Google
cpplint
DeveloperGoogle
Repositorygithub.com/google/styleguide
Written inPython
TypeStatic program analysis tool
License3-clause BSD license
Websitegoogle.github.io/styleguide/

cpplint orcpplint.py is an open sourcelint-like tool developed byGoogle,designed to ensure thatC++ code conforms toGoogle's coding style guides.

Therefore cpplint implements what Google considers best practices in C++ coding. The script cpplint.py reads source code files and flags deviations from the style guide. It also identifiessyntax errors. It is rules based, and uses a number of heuristics to identify bad code.[1]

Cpplint is not perfect, as it can suffer from occasional false positives and negatives. Nevertheless, it is still a very useful tool for style enforcement.[2]

Moreover rules can be fine-grained selected using the options--verbose and--filter.Line length rule can be configured with option--linelengthand file extensions can be configured with--extensions (by default: 'h', 'cpp', 'cc', 'cu' and 'cuh').Some options can be stored in a configuration fileCPPLINT.cfg.

cpplint is implemented as aPython script.[3]It is distributed under the3 clause BSD license.

See also

[edit]

References

[edit]
  1. ^Dutko, Adam M. (2011).The Relational Database: a New Static Analysis Tool?(PDF) (Master of Science). Cleveland State University. p. 20.ISSN 2572-3480.OCLC 750403495.Archived from the original on 18 May 2018.
  2. ^Weinberger, Benjy."Google C++ Style Guide, section cpplint".
  3. ^Google."GIT URL for cpplint.py".GitHub.
Google free and open-source software
Software
Applications
Programming languages
Frameworks and
development tools
Operating systems
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Cpplint&oldid=1284532171"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp