Skip to content

Commit fc63db1

Browse files
committed
Rule 7.0.6: Move operator tests to separate file
1 parent 06ffbfb commit fc63db1

File tree

3 files changed

+368
-367
lines changed

3 files changed

+368
-367
lines changed

cpp/misra/test/rules/RULE-7-0-6/NumericAssignmentTypeMismatch.expected

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -65,79 +65,6 @@
6565
| test.cpp:442:8:442:14 | ... + ... | Assignment between incompatible numeric types from 'int' to 'uint8_t'. |
6666
| test.cpp:460:7:460:8 | l3 | Assignment between incompatible numeric types from 'uint16_t &' to 'uint32_t'. |
6767
| test.cpp:463:7:463:8 | l5 | Assignment between incompatible numeric types from 'uint64_t &' to 'uint32_t'. |
68-
| test.cpp:583:8:583:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
69-
| test.cpp:584:8:584:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
70-
| test.cpp:588:8:588:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
71-
| test.cpp:589:8:589:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
72-
| test.cpp:593:7:593:8 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
73-
| test.cpp:594:7:594:8 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
74-
| test.cpp:598:8:598:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
75-
| test.cpp:599:8:599:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
76-
| test.cpp:603:8:603:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
77-
| test.cpp:604:8:604:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
78-
| test.cpp:608:8:608:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
79-
| test.cpp:609:8:609:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
80-
| test.cpp:613:8:613:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
81-
| test.cpp:614:8:614:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
82-
| test.cpp:618:8:618:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
83-
| test.cpp:619:8:619:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
84-
| test.cpp:623:9:623:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
85-
| test.cpp:624:9:624:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
86-
| test.cpp:628:9:628:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
87-
| test.cpp:629:9:629:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
88-
| test.cpp:634:9:634:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
89-
| test.cpp:635:9:635:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
90-
| test.cpp:639:9:639:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
91-
| test.cpp:640:9:640:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
92-
| test.cpp:644:8:644:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
93-
| test.cpp:645:8:645:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
94-
| test.cpp:649:9:649:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
95-
| test.cpp:650:9:650:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
96-
| test.cpp:654:8:654:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
97-
| test.cpp:655:8:655:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
98-
| test.cpp:659:9:659:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
99-
| test.cpp:660:9:660:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
100-
| test.cpp:665:6:665:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
101-
| test.cpp:666:6:666:7 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
102-
| test.cpp:671:6:671:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
103-
| test.cpp:672:6:672:7 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
104-
| test.cpp:674:10:674:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
105-
| test.cpp:675:6:675:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
106-
| test.cpp:676:6:676:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
107-
| test.cpp:676:10:676:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
108-
| test.cpp:681:8:681:9 | l3 | Assignment between incompatible numeric types from 'int16_t' to 'int32_t'. |
109-
| test.cpp:682:8:682:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
110-
| test.cpp:683:8:683:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
111-
| test.cpp:687:9:687:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
112-
| test.cpp:688:9:688:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
113-
| test.cpp:692:9:692:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
114-
| test.cpp:693:9:693:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
115-
| test.cpp:697:9:697:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
116-
| test.cpp:698:9:698:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
117-
| test.cpp:702:9:702:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
118-
| test.cpp:703:9:703:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
119-
| test.cpp:707:9:707:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
120-
| test.cpp:708:9:708:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
121-
| test.cpp:712:9:712:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
122-
| test.cpp:713:9:713:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
123-
| test.cpp:717:9:717:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
124-
| test.cpp:718:9:718:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
125-
| test.cpp:722:9:722:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
126-
| test.cpp:723:9:723:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
127-
| test.cpp:727:10:727:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
128-
| test.cpp:728:10:728:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
129-
| test.cpp:732:10:732:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
130-
| test.cpp:733:10:733:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
131-
| test.cpp:738:3:738:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
132-
| test.cpp:739:3:739:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
133-
| test.cpp:743:3:743:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
134-
| test.cpp:744:3:744:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
135-
| test.cpp:748:3:748:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
136-
| test.cpp:749:3:749:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
137-
| test.cpp:761:8:761:12 | 42.0 | Assignment between incompatible numeric types from 'float' to 'int32_t'. |
138-
| test.cpp:776:8:776:10 | 42 | Assignment between incompatible numeric types from 'long' to 'int32_t'. |
139-
| test.cpp:777:8:777:11 | 42 | Assignment between incompatible numeric types from 'long long' to 'int32_t'. |
140-
| test.cpp:778:8:778:10 | 42 | Assignment between incompatible numeric types from 'unsigned int' to 'int32_t'. |
14168
| test_aggregate.cpp:29:22:29:24 | u16 | Assignment between incompatible numeric types from 'uint16_t' to 'uint8_t'. |
14269
| test_aggregate.cpp:31:26:31:28 | u32 | Assignment between incompatible numeric types from 'uint32_t' to 'uint16_t'. |
14370
| test_aggregate.cpp:33:31:33:33 | u32 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
@@ -206,6 +133,79 @@
206133
| test_member_pointers.cpp:125:12:125:14 | u16 | Assignment between incompatible numeric types from 'uint16_t' to 'int64_t'. |
207134
| test_member_pointers.cpp:126:12:126:14 | u32 | Assignment between incompatible numeric types from 'uint32_t' to 'int64_t'. |
208135
| test_member_pointers.cpp:127:12:127:14 | u64 | Assignment between incompatible numeric types from 'uint64_t' to 'int64_t'. |
136+
| test_operators.cpp:99:8:99:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
137+
| test_operators.cpp:100:8:100:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
138+
| test_operators.cpp:104:8:104:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
139+
| test_operators.cpp:105:8:105:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
140+
| test_operators.cpp:109:7:109:8 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
141+
| test_operators.cpp:110:7:110:8 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
142+
| test_operators.cpp:114:8:114:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
143+
| test_operators.cpp:115:8:115:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
144+
| test_operators.cpp:119:8:119:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
145+
| test_operators.cpp:120:8:120:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
146+
| test_operators.cpp:124:8:124:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
147+
| test_operators.cpp:125:8:125:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
148+
| test_operators.cpp:129:8:129:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
149+
| test_operators.cpp:130:8:130:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
150+
| test_operators.cpp:134:8:134:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
151+
| test_operators.cpp:135:8:135:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
152+
| test_operators.cpp:139:9:139:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
153+
| test_operators.cpp:140:9:140:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
154+
| test_operators.cpp:144:9:144:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
155+
| test_operators.cpp:145:9:145:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
156+
| test_operators.cpp:150:9:150:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
157+
| test_operators.cpp:151:9:151:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
158+
| test_operators.cpp:155:9:155:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
159+
| test_operators.cpp:156:9:156:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
160+
| test_operators.cpp:160:8:160:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
161+
| test_operators.cpp:161:8:161:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
162+
| test_operators.cpp:165:9:165:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
163+
| test_operators.cpp:166:9:166:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
164+
| test_operators.cpp:170:8:170:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
165+
| test_operators.cpp:171:8:171:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
166+
| test_operators.cpp:175:9:175:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
167+
| test_operators.cpp:176:9:176:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
168+
| test_operators.cpp:181:6:181:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
169+
| test_operators.cpp:182:6:182:7 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
170+
| test_operators.cpp:187:6:187:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
171+
| test_operators.cpp:188:6:188:7 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
172+
| test_operators.cpp:190:10:190:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
173+
| test_operators.cpp:191:6:191:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
174+
| test_operators.cpp:192:6:192:7 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
175+
| test_operators.cpp:192:10:192:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
176+
| test_operators.cpp:197:8:197:9 | l3 | Assignment between incompatible numeric types from 'int16_t' to 'int32_t'. |
177+
| test_operators.cpp:198:8:198:9 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
178+
| test_operators.cpp:199:8:199:9 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
179+
| test_operators.cpp:203:9:203:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
180+
| test_operators.cpp:204:9:204:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
181+
| test_operators.cpp:208:9:208:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
182+
| test_operators.cpp:209:9:209:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
183+
| test_operators.cpp:213:9:213:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
184+
| test_operators.cpp:214:9:214:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
185+
| test_operators.cpp:218:9:218:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
186+
| test_operators.cpp:219:9:219:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
187+
| test_operators.cpp:223:9:223:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
188+
| test_operators.cpp:224:9:224:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
189+
| test_operators.cpp:228:9:228:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
190+
| test_operators.cpp:229:9:229:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
191+
| test_operators.cpp:233:9:233:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
192+
| test_operators.cpp:234:9:234:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
193+
| test_operators.cpp:238:9:238:10 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
194+
| test_operators.cpp:239:9:239:10 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
195+
| test_operators.cpp:243:10:243:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
196+
| test_operators.cpp:244:10:244:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
197+
| test_operators.cpp:248:10:248:11 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
198+
| test_operators.cpp:249:10:249:11 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
199+
| test_operators.cpp:254:3:254:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
200+
| test_operators.cpp:255:3:255:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
201+
| test_operators.cpp:259:3:259:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
202+
| test_operators.cpp:260:3:260:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
203+
| test_operators.cpp:264:3:264:4 | l4 | Assignment between incompatible numeric types from 'int64_t' to 'int32_t'. |
204+
| test_operators.cpp:265:3:265:4 | l5 | Assignment between incompatible numeric types from 'uint32_t' to 'int32_t'. |
205+
| test_operators.cpp:277:8:277:12 | 42.0 | Assignment between incompatible numeric types from 'float' to 'int32_t'. |
206+
| test_operators.cpp:292:8:292:10 | 42 | Assignment between incompatible numeric types from 'long' to 'int32_t'. |
207+
| test_operators.cpp:293:8:293:11 | 42 | Assignment between incompatible numeric types from 'long long' to 'int32_t'. |
208+
| test_operators.cpp:294:8:294:10 | 42 | Assignment between incompatible numeric types from 'unsigned int' to 'int32_t'. |
209209
| test_specified.cpp:37:8:37:9 | l2 | Assignment between incompatible numeric types from 'uint16_t' to 'uint8_t'. |
210210
| test_specified.cpp:38:8:38:9 | l3 | Assignment between incompatible numeric types from 'uint32_t' to 'uint8_t'. |
211211
| test_specified.cpp:41:8:41:9 | l5 | Assignment between incompatible numeric types from 'int16_t' to 'int8_t'. |

0 commit comments

Comments
 (0)