Closed
Description
Affected rules
A14-5-2
Description
Type member defined with a dependent name and template parameter results in recommendation to be defined in a separated class because it is identified to be not dependent on the template parameter.
Example
template<typename T>
struct a_template_struct {
using type = T;
};
template<typename T>
struct another_template_struct {
using type = typename a_template_struct<T>::type;
};
Query cpp/autosar/src/rules/A14-5-2/NonTemplateMemberDefinedInTemplate.ql
outputs that another_template_struct::type
does not use any of the template arguments of another_template_struct
.