4.3.26 -Ncheck=c
Checks header files for corresponding
declarations, and checks macros. c is a comma-separated
list of checks that consists of one or more of the following: macro, extern, %all, %none, no%macro, no%extern.
Table 4-7 -Ncheck Flags
|
|
macro
|
Checks for consistency of macro definitions across files
|
extern
|
Checks for one-to-one correspondence of declarations between source files and their associated
header files (for example, for file1.c and file1.h). Ensures
that there are neither extraneous nor missing extern declarations in a header
file.
|
%all
|
Performs all of -Ncheck’s checks
|
%none
|
Performs none of -Ncheck’s checks. This is the default.
|
no%macro
|
Performs none of -Ncheck’s macro checks
|
no%extern
|
Performs none of -Ncheck’s extern checks
|
|
The default is -Ncheck=%none. Specifying -Ncheck is equivalent to specifying -Ncheck=%all.
Values may be combined with a comma, for example, -Ncheck=extern,macro.
The following example performs all checks except macro checks.
% lint -Ncheck=%all,no%macro