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?
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?