encyclopegia.org

Lint (software)

Lint is a Unix utility that performs static program analysis on C language source code. The software gives its name to modern computing tools responsible for checking for coding style or formatting errors, known as "linters" or "linting tools", even though the original Lint program performed static program analysis.

Lint is a Unix utility that performs static program analysis on C language source code. The software gives its name to modern computing tools responsible for checking for coding style or formatting errors, known as "linters" or "linting tools", even though the original Lint program performed static program analysis. ==History== Stephen C. Johnson, a computer scientist at Bell Labs, came up with the term "lint" in 1978 while debugging the yacc grammar he was writing for C and dealing with portability issues stemming from porting Unix to a 32-bit machine. The term was borrowed from lint, the tiny bits of fiber and fluff shed by clothing, as the command he wrote would act like a lint trap in a clothes dryer, capturing waste fibers while leaving whole fabrics intact. The lint program was released outside of Bell Labs in Unix V7, in 1979. In his 1978 paper, Johnson explained his reasons for creating a new program to detect errors: "...the general notion of having two programs is a good one" because they concentrate on different things, thereby allowing the programmer to "concentrate at one stage of the programming process solely on the algorithms, data structures, and correctness of the program, and then later retrofit, with the aid of lint, the desirable properties of universality and portability". The paper lists lint's additional checks as: checks for unused variables and functions; checks for variables used before they're set or set but never used; checks for unreachable code; checks for functions that sometimes return with a return value and sometimes return with no return value; additional type checking; optional checks for non-portable type casts; checks for char values being non-portably tested for being negative; assignments of values that might not fit in the target variable, e.g. long values being assigned to an int variable; valid C statements that don't make sense, such as a statement *p++; , which increments p but does not use the pre-incremented value; possible pointer misalignment; code that behaves differently if the order of expression evaluation is done differently on different platforms or compilers; type mismatches between formal and actual parameters to functions. ANSI C introduced function prototypes, allowing ANSI C compilers to perform the checks for type mismatches between formal and actual function parameters if a function prototype has been seen before the function is called; it also added the void type for functions that return no value, allowing compilers to check for void functions that return a value, in addition to checks for functions that have a return value type but that return with no return value. Many of lint's checks can also be performed as part of the analysis done by optimizing compilers, so, when a sufficiently high level of optimization is being performed, C compilers would also perform checks for unused variables and functions, used-before-set and set-and-unused variable checks, checks for unreachable code. Other lint checks have also been added to C compilers over time. ==See also== Splint (programming tool) List of tools for static code analysis ==References== ==Further reading==

References

No reference rows published for this article.

Cite this article

MLA

"Lint (software)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/lint-software. Accessed 25 November 2026.

Chicago

"Lint (software)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/lint-software.

APA

encyclopegia.org. (2026). Lint (software). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/lint-software

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date1979Wikipedia

Related articles

Ubuntu Software Center

stub · references available

customs software

stub · references available

access software

stub · references available

Free Software Song

stub · references available

software framework

stub · references available

route planning software

stub · references available

data loss prevention software

stub · references available

free and open-source software

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1368752654 · 0.5 · snapshot enwiki-001368752654

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.