[go: up one dir, main page]

Jump to content

Cpplint

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Dawynn (talk | contribs) at 11:39, 10 July 2013 (→‎References: Stub-sorting. You can help!). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

cpplint is an open source lint-like tool developed by Google, designed to ensure that C++ code conforms to Google's coding style guides. It reads source code files and flags deviations from the style guide. It suffers from both false positives and false negatives. False positives can be eliminated by tagging lines with //NOLINT. [1] cpplint is implemented as Python script.[2]

cpplint implements what Google considers to be "best practices" in C++ coding. It also identifies syntax errors. It is rules based, and uses a number of heuristics to identify bad code. [3]

References

  1. ^ Weinberger, Benjy. "Google C++ Style Guide" (PDF).
  2. ^ "Subversion trunk URL for cpplint.py". {{cite web}}: |first= has generic name (help); |first= missing |last= (help)
  3. ^ Dutko, Adam. "THE RELATIONAL DATABASE: A NEW STATIC ANALYSIS TOOL?" (PDF).