Qt-Generic-NoFunctionDefinitionInHeader

Do not define (non-inline) functions in header files

Required inputs: IR

The declaration of a non-static non-inline function in a header file violates the One Definition Rule if the header file is included in multiple compilation units.

Possible Messages

Key

Text

Severity

Disabled

external_function_definition_in_header

External function definition in header file.

None

False

internal_function_declaration_in_header

Internal function declaration in header file.

None

False

Options

find_non_external_function_declaration

find_non_external_function_declaration : bool = False

Whether function declarations with non-external linkage should be reported.