Skip to content

Commit da5f262

Browse files
committed
Update expected test results
1 parent 9c6f08c commit da5f262

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

cpp/common/test/rules/unusedtypedeclarations/UnusedTypeDeclarations.expected

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
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. |

cpp/common/test/rules/unusedtypedeclarations/test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ template <class T> class X { // COMPLIANT - template class never instantiated
107107
template <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

113114
void test_alias_template() { Z<int> v; }
114115

0 commit comments

Comments
 (0)