Miscellaneous-MissingSelfHeaderIncludeΒΆ

Each compilation unit shall include its own header file

Required inputs: IR

A primary file should (non-transitively) include an equally named header file (disregarding file extensions and case-sensitivity) if it is included at all.
Example
file.cpp must (directly) include a file File.h if this file is also included by some other file:
#include "File.h"

Possible Messages

Key

Text

Severity

Disabled

missing_selfheader_include

Compilation unit does not include its own header file.

None

False

Options