File tree Expand file tree Collapse file tree
cpp/common/test/rules/unusedtypedeclarations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33| test.cpp:13:11:13:11 | D | Type declaration D is not used. |
44| test.cpp:77:11:77:11 | R | Type declaration R is not used. |
55| test.cpp:90:12:90:12 | (unnamed class/struct/union) | Type declaration (unnamed class/struct/union) is not used. |
6- | test.cpp:111:29:111:30 | AA | Type declaration AA is not used. |
7- | test.cpp:126:7:126:12 | Nested | Type declaration Nested is not used. |
8- | test.cpp:135:9:135:20 | UnusedNested | Type declaration UnusedNested is not used. |
9- | test.cpp:138:7:138:22 | NestedBlockScope | Type declaration NestedBlockScope is not used. |
10- | test.cpp:149:11:149:16 | Unused | Type declaration Unused is not used. |
6+ | test.cpp:127:7:127:12 | Nested | Type declaration Nested is not used. |
7+ | test.cpp:136:9:136:20 | UnusedNested | Type declaration UnusedNested is not used. |
8+ | test.cpp:139:7:139:22 | NestedBlockScope | Type declaration NestedBlockScope is not used. |
9+ | test.cpp:150:11:150:16 | Unused | Type declaration Unused is not used. |
Original file line number Diff line number Diff line change @@ -107,8 +107,9 @@ template <class T> class X { // COMPLIANT - template class never instantiated
107107template <class T > class Y {}; // COMPLIANT - used in the test case below
108108
109109// Alias templates
110- template <typename T> using Z = Y<T>; // COMPLIANT - used below
111- template <typename T> using AA = Y<T>; // NON_COMPLIANT - never instantiated
110+ template <typename T> using Z = Y<T>; // COMPLIANT - used below
111+ template <typename T>
112+ using AA = Y<T>; // NON_COMPLIANT[FALSE_NEGATIVE] - never instantiated
112113
113114void test_alias_template () { Z<int > v; }
114115
You can’t perform that action at this time.
0 commit comments