Absolute path is used in include directive

The CWARN.INCL.ABSOLUTE checker finds instances in which an absolute path is used as a header name.

Vulnerability and risk

Header file inclusion should never use an absolute path. The directory path should be specified in the compiler options.

Vulnerable code example

1  #include "D:\\Work\\Projects\\TheBest\\common.h"

Klocwork flags this example because the absolute path is used in the include statement.