Qt-Generic-WrongIncludeCasingΒΆ

Includes should use same casing as target file name

Required inputs: IR

When porting from Windows / case-insensitive file system to case-sensitive file systems, the casing has to be identical. Even if you do not plan to port your code, the same casing will look more familiar and cause less surprises.
Bad code:
// foo.h
void foo();

// foo.c
#include "Foo.h" // ERROR: #include should use casing of target file (which is foo.h)
void foo() {}
Good code:
// foo.h
void foo();

// foo.c
#include "foo.h" // OK: #include uses same casing as target file
void foo() {}

Possible Messages

Key

Text

Severity

Disabled

wrong_include_casing

#include should use casing of target file (which is {}).

None

False

Options