Sun Studio 12: C User's Guide

4.3.11 -errhdr=h

Enables lint to report certain messages for header files when you also specify -Ncheck. h is a comma-separated list that consists of one or more of the following: dir, no%dir, %all, %none, %user.

Table 4–3 The -errhdr Flags

Value 

Meaning  

dir

Report the -Ncheck messages for header files included from the directory dir

no%dir

Does not report the -Ncheck messages for header files included from 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.