[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 Ottawahitech (talk | contribs) at 02:43, 6 September 2012 (added Category:Google using HotCat). 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.

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. [2]

References

  1. ^ Weinberger, Benjy. "Google C++ Style Guide" (PDF).
  2. ^ Dutko, Adam. "THE RELATIONAL DATABASE: A NEW STATIC ANALYSIS TOOL?" (PDF).