Enables the reporting of certain messages for header files when used with -Ncheck. h is a comma-separated list that consists of one or more of the following: dir, no%dir, %all, %none, %user.
Table 5-2 The -errhdr Values
Value |
Meaning |
---|---|
dir |
Checks header files used in the directory dir |
no%dir |
Does not check header files used in the directory dir |
%all |
Checks all used header files |
%none |
Does not check header files. This is the default. |
%user |
Checks all used user header files, that is, all header files except those in /usr/include and its subdirectories, as well as those supplied by the compiler |
The default is -errhdr=%none. Specifying -errhdr is equivalent to specifying -errhdr=%user.
Examples:
% lint -errhdr=inc1 -errhdr=../inc2
checks used header files in directories inc1 and ../inc2.
% lint -errhdr=%all,no%../inc
checks all used header files except those in the directory ../inc.