codeql-coding-standards
codeql-coding-standards copied to clipboard
`A3-1-5`: Queries follow interpretation of rational and examples that communicate incorrect intentions
Affected rules
- cpp/autosar/non-trivial-non-template-function-defined-inside-class-definition
- cpp/autosar/trivial-or-template-function-defined-outside-class-definition
Description
See discussion for the two interpretations and the intend of MISRA.
This requires removing of trivial-or-template-function-defined-outside-class-definition and solely look at the function definitions that are part of a class definition and ensure they satisfies the conditions set forth in the rule.