Skip to content

Potential False Positive in MISRA23_6.2.4 #77

@jordancolbeth

Description

@jordancolbeth

The attached source files generate the following false positive

test.hpp, Header file contains definitions of functions or objects that are non-inline and have external linkage, 14, 24, scitools::operator<<::[lambda_0], Lambda Function, MISRA23_6.2.4, 6.2.4 A header file shall not contain definitions of functions or objects that are non-inline and have external linkage

The lambda function in question is a local variable for a hidden friend operator. So although it is defined inside a header file, it does not have external linkage.

test.zip

@kennethctdmn would you please look into this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions