File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,8 @@ where
169
169
)
170
170
) and
171
171
// Omit using alias (cf. https://github.com/github/codeql-coding-standards/issues/739)
172
- not d instanceof UsingAliasTypedefType
172
+ // Exclude Using alias which refer directly to a TypeParameter
173
+ not d .( UsingAliasTypedefType ) .getBaseType ( ) instanceof TemplateParameter
173
174
select d ,
174
175
"Member " + d .getName ( ) + " template class does not use any of template arguments of its $@." ,
175
176
d .getDeclaringType ( ) , "declaring type"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ template <typename T> class C1 {
8
8
enum E1 : T { e1 , e2 }; // COMPLIANT
9
9
10
10
using T1 = typename template_base<T>::type; // COMPLIANT
11
- using T2 = typename template_base<int >::type; // NON_COMPLIANT[FALSE_NEGATIVE]
11
+ using T2 = typename template_base<int >::type; // NON_COMPLIANT
12
12
13
13
class C11 { // COMPLIANT
14
14
enum E2 {
You can’t perform that action at this time.
0 commit comments