Miscellaneous-NoExternInImplΒΆ

Do not put extern declarations into implementation files

Required inputs: IR

Any objects/functions with extern linkage should be declared in header files. Objects/functions in implementation files should use static linkage.

Possible Messages

Key

Text

Severity

Disabled

extern_funcdef_at_block_scope

Extern declaration at block scope.

None

False

extern_funcdef_in_implementation

Extern declaration in implementation file.

None

False

extern_variable_decl_at_block_scope

Extern declaration at block scope.

None

False

extern_variable_decl_in_implementation

Extern declaration in implementation file.

None

False

Options