GeneralPurpose-WrongIncludeCasingΒΆ
Includes should use same casing as target file name
Required inputs: IR
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
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
This rule has no individual options.