[go: up one dir, main page]

Jump to content

Cpplint: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Jeff Song (talk | contribs)
No edit summary
Jeff Song (talk | contribs)
No edit summary
Line 6: Line 6:
cpplint is implemented as [[Python (programming language)|Python]] script.
cpplint is implemented as [[Python (programming language)|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. <ref>{{cite web|url=http://etd.ohiolink.edu/send-pdf.cgi/Dutko%20Adam%20M.pdf?csu1313678735|last=Dutko|first=Adam|title=THE RELATIONAL DATABASE: A NEW STATIC ANALYSIS TOOL?}]</ref>
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. <ref>{{cite web|url=http://etd.ohiolink.edu/send-pdf.cgi/Dutko%20Adam%20M.pdf?csu1313678735|last=Dutko|first=Adam|title=THE RELATIONAL DATABASE: A NEW STATIC ANALYSIS TOOL?}]</ref>


==References==
==References==

Revision as of 18:46, 9 February 2012

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. ^ {{cite web|url=http://etd.ohiolink.edu/send-pdf.cgi/Dutko%20Adam%20M.pdf?csu1313678735%7Clast=Dutko%7Cfirst=Adam%7Ctitle=THE RELATIONAL DATABASE: A NEW STATIC ANALYSIS TOOL?}]